[战斗]============灵兽技能伤害不检测是否命中

dev_chengFeng
wangzhenxing 2021-10-21 13:25:41 +08:00
parent bb849d4b93
commit 3d9bf0041f
3 changed files with 3 additions and 5 deletions

View File

@ -378,9 +378,6 @@ function this.GetBattleServerData(msg, isFightPlayer)
end
end
-- 敌方
--

View File

@ -884,7 +884,7 @@ function BattleUtil.CalDamage(skill, atkRole, defRole, damageType, baseFactor, i
return
end
-- 判断是否命中
if skill and not skill:CheckTargetIsHit(defRole) then
if skill and not skill:CheckTargetIsHit(defRole) and atkRole.type==BattleUnitType.Role then
BattleLogic.Event:DispatchEvent(BattleEventName.HitMiss, atkRole, defRole, skill)
atkRole.Event:DispatchEvent(BattleEventName.HitMiss, defRole, skill)
defRole.Event:DispatchEvent(BattleEventName.BeHitMiss, atkRole, skill)

View File

@ -345,7 +345,8 @@ function this.RefreshFightData(type)
data.property[pi] = monster.props[pi] or 0
end
local MSkillId = data.id..data.star
data.skill = BattleManager.MonsterSkillAdapter(MSkillId) or {}
data.skill={}
data.skill[1] = BattleManager.MonsterSkillAdapter(MSkillId) or {}
-- 添加角色数据
this.AddMonsterData(data)
end