[战斗] ======被动244 修改,检测是否为boss方法修改
parent
76765a51a4
commit
2f08a5179e
|
@ -4882,7 +4882,7 @@ local passivityList = {
|
||||||
--怪物的身份表份标识 挂上这个效果就会变成参数对应的类型
|
--怪物的身份表份标识 挂上这个效果就会变成参数对应的类型
|
||||||
[244] = function(role, args)
|
[244] = function(role, args)
|
||||||
local f1 = args[1]
|
local f1 = args[1]
|
||||||
role.data.enemyType=f1
|
role.enemyType=f1
|
||||||
BattleUtil.CheckIsBoss(role)
|
BattleUtil.CheckIsBoss(role)
|
||||||
end,
|
end,
|
||||||
-- (直接伤害(目前没有明确定义直接伤害))直接伤害击杀目标自身增加[a]点怒气 重写92被动效果 每次释放技能只触发一次
|
-- (直接伤害(目前没有明确定义直接伤害))直接伤害击杀目标自身增加[a]点怒气 重写92被动效果 每次释放技能只触发一次
|
||||||
|
|
|
@ -346,9 +346,9 @@ end
|
||||||
--检测是否为boss
|
--检测是否为boss
|
||||||
function BattleUtil.CheckIsBoss(role)
|
function BattleUtil.CheckIsBoss(role)
|
||||||
if not role then
|
if not role then
|
||||||
return
|
return false
|
||||||
end
|
end
|
||||||
if role.data.enemyType==EnemyType.Boss then
|
if role.enemyType==EnemyType.Boss then
|
||||||
--弹免疫
|
--弹免疫
|
||||||
role.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.Immune)
|
role.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.Immune)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue