[战斗]==============死亡技能不受眩晕,沉默影响
parent
706ee26390
commit
2cafeecb80
|
@ -309,7 +309,11 @@ end
|
|||
|
||||
|
||||
-- 判断角色是否可以释放技能
|
||||
function RoleLogic:IsAvailable()
|
||||
function RoleLogic:IsAvailable(skill)
|
||||
--角色没有真正死亡 在 被眩晕/沉默的 情况下 任然能释放死亡技能
|
||||
if (self.ctrl_dizzy or self.ctrl_slient) and self:IsDead() and skill and skill.type==BattleSkillType.DeadSkill then
|
||||
return true
|
||||
end
|
||||
-- 眩晕 -- 死亡
|
||||
if self.ctrl_dizzy or self:IsRealDead() then
|
||||
return false
|
||||
|
@ -335,7 +339,7 @@ function RoleLogic:SkillCast(skill, func)
|
|||
end
|
||||
|
||||
-- 角色不可用直接结束技能释放
|
||||
if not skill or not self:IsAvailable() then
|
||||
if not skill or not self:IsAvailable(skill) then
|
||||
self.Event:DispatchEvent(BattleEventName.ActionOperateAngerAfter,self)
|
||||
_CastDone()
|
||||
return
|
||||
|
@ -364,7 +368,7 @@ function RoleLogic:SkillCast(skill, func)
|
|||
skill:Cast(_CheckRage)
|
||||
|
||||
-- 没有沉默,释放大技能
|
||||
elseif (skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra or skill.type==BattleSkillType.DeadSkill) and not self.ctrl_slient then
|
||||
elseif (skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra or skill.type==BattleSkillType.DeadSkill) and (not self.ctrl_slient or skill.type==BattleSkillType.DeadSkill) then
|
||||
-- 先消耗怒气
|
||||
if skill.isRage then
|
||||
if self.Rage < self.SuperSkillRage then
|
||||
|
|
Loading…
Reference in New Issue