[战斗]============追加额外技能是否触发特性修改,哪吒大招后摇时间延长
parent
80392134af
commit
fdfa2dd76b
|
@ -442,12 +442,14 @@ function RoleLogic:InsertExtraSkill(id,type)
|
||||||
if effectData then
|
if effectData then
|
||||||
local skillType=BattleSkillType.Extra
|
local skillType=BattleSkillType.Extra
|
||||||
--如果type为1则按绝技处理,不为1的话按额外技能处理(额外技能因为被动判断会判断是否是绝技类型,所以不会触发)
|
--如果type为1则按绝技处理,不为1的话按额外技能处理(额外技能因为被动判断会判断是否是绝技类型,所以不会触发)
|
||||||
|
local isTrigger=true
|
||||||
if type==1 then
|
if type==1 then
|
||||||
skillType=BattleSkillType.Special
|
skillType=BattleSkillType.Special
|
||||||
|
else
|
||||||
|
isTrigger=false
|
||||||
end
|
end
|
||||||
|
|
||||||
--和老史,佳琦确认果 附加技能算绝技 被沉默无法释放 可以套娃 递归触发 by:王振兴
|
--和老史,佳琦确认果 附加技能算绝技 被沉默无法释放 可以套娃 递归触发 by:王振兴
|
||||||
SkillManager.InsertSkill(self, effectData, skillType, nil, true, false,true)
|
SkillManager.InsertSkill(self, effectData, skillType, nil, true, false,isTrigger)
|
||||||
BattleLogManager.Log(
|
BattleLogManager.Log(
|
||||||
"Insert Extra Skill",
|
"Insert Extra Skill",
|
||||||
"camp", self.camp,
|
"camp", self.camp,
|
||||||
|
|
|
@ -88,7 +88,11 @@ function Skill:Cast(func)
|
||||||
--技能的施法时间计算,根据当前目标id关联的持续时间,取其中时间最长的一个
|
--技能的施法时间计算,根据当前目标id关联的持续时间,取其中时间最长的一个
|
||||||
local duration = self.hitTime + self.continueTime
|
local duration = self.hitTime + self.continueTime
|
||||||
-- 结算时间向后延长0.2秒,避免在效果结算完成前就结束了技能释放
|
-- 结算时间向后延长0.2秒,避免在效果结算完成前就结束了技能释放
|
||||||
BattleLogic.WaitForTrigger(duration + 0.8, function()
|
local time=0.8
|
||||||
|
if self.id==1282 then
|
||||||
|
time=2.5
|
||||||
|
end
|
||||||
|
BattleLogic.WaitForTrigger(duration + time, function()
|
||||||
self.owner.Event:DispatchEvent(BattleEventName.SkillCastEnd, self)
|
self.owner.Event:DispatchEvent(BattleEventName.SkillCastEnd, self)
|
||||||
BattleLogic.Event:DispatchEvent(BattleEventName.SkillCastEnd, self)
|
BattleLogic.Event:DispatchEvent(BattleEventName.SkillCastEnd, self)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue