技能位置

This commit is contained in:
xiekaidong 2023-08-15 09:21:50 +08:00
parent 39ae534750
commit 5bd2b94cd8

View File

@ -231,6 +231,13 @@ function BattleSkillEntity:changeSkillId(skillId)
end end
function BattleSkillEntity:getMoveType() function BattleSkillEntity:getMoveType()
if self.skillShow then
if not self.skillShow.skill_position then
return
end
return self.skillShow.skill_position[1]
end
if not self.skillInfo.skill_position then if not self.skillInfo.skill_position then
return return
end end
@ -238,6 +245,13 @@ function BattleSkillEntity:getMoveType()
end end
function BattleSkillEntity:getMoveTypeParams() function BattleSkillEntity:getMoveTypeParams()
if self.skillShow then
if not self.skillShow.skill_position then
return 0
end
return self.skillShow.skill_position[2] or 0
end
if not self.skillInfo.skill_position then if not self.skillInfo.skill_position then
return 0 return 0
end end