Skip to content

Commit

Permalink
[CN UPDATE] Client:2.2.01 Data:24-02-01-18-25-51-48a953
Browse files Browse the repository at this point in the history
  • Loading branch information
MuelsyseBot_v1 committed Feb 1, 2024
1 parent 94cad13 commit e4e64ea
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
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
3 changes: 2 additions & 1 deletion zh_CN/gamedata/[uc]lua/hotfixes/DefinedFix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ local list =
{

"HotFixes/TestStubHotfixer",
"HotFixes/SandboxV2Hotfixer"
"HotFixes/SandboxV2Hotfixer",
"HotFixes/AttachListenerToTileAbilityHotfixer",
};

return list;

0 comments on commit e4e64ea

Please sign in to comment.