bug修复

This commit is contained in:
xiekaidong 2023-06-29 10:29:46 +08:00
parent 8bc3bdba34
commit c391fb0fbc

View File

@ -235,10 +235,10 @@ local _addSkillEffect = function(skillId, skillInfo, battleBaseData, battleContr
return return
end end
local buffEntity = BattleBuffEntity:create() local buffEntity = BattleBuffEntity:create()
buffEntity:init(effect, actionTeam:getUnitComp().unitEntity) buffEntity:init(effect, actionTeam:getMainUnit().unitEntity)
buffEntity:setTargetSide(skillInfo.obj) buffEntity:setTargetSide(skillInfo.obj)
actionTeam:getUnitComp():takeEffect(buffEntity, target) actionTeam:getMainUnit():takeEffect(buffEntity, target)
end end
end end