技能位置
This commit is contained in:
parent
39ae534750
commit
5bd2b94cd8
@ -231,6 +231,13 @@ function BattleSkillEntity:changeSkillId(skillId)
|
||||
end
|
||||
|
||||
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
|
||||
return
|
||||
end
|
||||
@ -238,6 +245,13 @@ function BattleSkillEntity:getMoveType()
|
||||
end
|
||||
|
||||
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
|
||||
return 0
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user