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