From 2f08a5179e16e1c546e8995094551022c848527d Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Tue, 12 Jan 2021 22:48:05 +0900 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=20=3D=3D=3D=3D=3D=3D?= =?UTF-8?q?=E8=A2=AB=E5=8A=A8244=20=20=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E6=98=AF=E5=90=A6=E4=B8=BAboss=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/Base/Passivity.lua | 2 +- .../~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index f35ba525e4..30da10324d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -4882,7 +4882,7 @@ local passivityList = { --怪物的身份表份标识 挂上这个效果就会变成参数对应的类型 [244] = function(role, args) local f1 = args[1] - role.data.enemyType=f1 + role.enemyType=f1 BattleUtil.CheckIsBoss(role) end, -- (直接伤害(目前没有明确定义直接伤害))直接伤害击杀目标自身增加[a]点怒气 重写92被动效果 每次释放技能只触发一次 diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua index f60e7b7c81..5b9d9d1995 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua @@ -346,9 +346,9 @@ end --检测是否为boss function BattleUtil.CheckIsBoss(role) if not role then - return + return false end - if role.data.enemyType==EnemyType.Boss then + if role.enemyType==EnemyType.Boss then --弹免疫 role.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.Immune) return true