锁定buff修复
This commit is contained in:
parent
5142f704c5
commit
a29a9606bf
@ -1995,9 +1995,8 @@ function BattleBaseController:lockElement(lcokElementType, isUnlock)
|
||||
end
|
||||
|
||||
if isUnlock then
|
||||
self.battleData:cacheLockElement(lcokElementType, nil)
|
||||
self.battleData:clearAllCacheLockElement(lcokElementType, nil)
|
||||
for elementType, list in pairs(self.lockElementMap) do
|
||||
self.battleData:cacheLockElement(elementType, nil)
|
||||
for _, posId in ipairs(list) do
|
||||
self.battleData:setGridType(posId, BattleConst.GRID_TYPE.EMPTY)
|
||||
end
|
||||
|
||||
@ -617,6 +617,10 @@ function BattleBaseData:getCacheLockedElement(elementType)
|
||||
return self.lockElementMap[elementType]
|
||||
end
|
||||
|
||||
function BattleBaseData:clearAllCacheLockElement()
|
||||
self.lockElementMap = table.clearOrCreate(self.lockElementMap)
|
||||
end
|
||||
|
||||
function BattleBaseData:cacheBoardSkill()
|
||||
self.cacheSkillList = {}
|
||||
self.cacheSkillCount = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user