bug修复
This commit is contained in:
parent
4f20b37d56
commit
381a4477bd
@ -435,7 +435,10 @@ local function _takeAddSkillEnergy(atkUnitComp, skillEntity, battleController)
|
||||
elementType = boardSkills[math.random(1, count)]
|
||||
end
|
||||
|
||||
local side = battleController:getCurActionSide()
|
||||
local side = battleController:getCurActionSide()
|
||||
if atkUnitComp then
|
||||
side = atkUnitComp:getSide()
|
||||
end
|
||||
elementTypeMap = {[elementType] = addEnergy}
|
||||
battleController:addSkillEnergy(elementTypeMap, side)
|
||||
battleController.battleUI:refreshSkill(nil, nil, side)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user