-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CN UPDATE] Client:2.2.01 Data:24-02-01-18-25-51-48a953
- Loading branch information
MuelsyseBot_v1
committed
Feb 1, 2024
1 parent
94cad13
commit e4e64ea
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
zh_CN/gamedata/[uc]lua/hotfixes/AttachListenerToTileAbilityHotfixer.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
|
||
|
||
|
||
|
||
local AttachListenerToTileAbilityHotfixer = Class("AttachListenerToTileAbilityHotfixer", HotfixBase) | ||
|
||
local function _FixGetTileCastedTimes(self, tile) | ||
if tile == nil then | ||
return 0 | ||
end | ||
return self:GetTileCastedTimes(tile) | ||
end | ||
|
||
function AttachListenerToTileAbilityHotfixer:OnInit() | ||
self:Fix_ex(CS.Torappu.Battle.Abilities.AttachListenerToTileAbility, "GetTileCastedTimes", function(self, tile) | ||
local ok, ret = xpcall(_FixGetTileCastedTimes, debug.traceback, self, tile) | ||
if not ok then | ||
LogError("[Hotfix] failed to _FixGetTileCastedTimes : ".. ret) | ||
return self:GetTileCastedTimes(tile) | ||
else | ||
return ret | ||
end | ||
end) | ||
end | ||
|
||
return AttachListenerToTileAbilityHotfixer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters