bug
This commit is contained in:
parent
6ad53ac174
commit
342bae9c82
@ -545,6 +545,9 @@ function BattleUI:clear()
|
||||
if self.battleNode then
|
||||
self.battleNode:removeAllChildren()
|
||||
end
|
||||
if self.battleNumberNode then
|
||||
self.battleNumberNode:removeAllChildren()
|
||||
end
|
||||
end
|
||||
|
||||
return BattleUI
|
||||
@ -146,10 +146,12 @@ function BattleUnitEntity:changeActiveSkillId(originSkillId, tartgetSkillId)
|
||||
for _, skillEntity in ipairs(self.activeSkills) do
|
||||
if skillEntity:getSkillid() == originSkillId then
|
||||
skillEntity:changeSkillId(tartgetSkillId)
|
||||
if self.skillExtraUseTimes then
|
||||
local extraCount = self.skillExtraUseTimes[originSkillId]
|
||||
if extraCount then
|
||||
self.skillExtraUseTimes[tartgetSkillId] = extraCount
|
||||
end
|
||||
end
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user