技能可能不可用
This commit is contained in:
parent
ea69a44b75
commit
6569fabe48
@ -23,6 +23,7 @@ function BattleSkillEntity:init()
|
||||
self.cd = 0
|
||||
end
|
||||
self:initSkillEffect()
|
||||
self.available = self.skillInfo.effect_type ~= nil
|
||||
end
|
||||
|
||||
function BattleSkillEntity:initSkillEffect()
|
||||
@ -55,6 +56,9 @@ end
|
||||
|
||||
-- 技能是否可用
|
||||
function BattleSkillEntity:getIsAvailable()
|
||||
if not self.available then
|
||||
return false
|
||||
end
|
||||
return self.cd == 0
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user