义结金兰魂印bug修改提交
parent
d15da5d1e7
commit
307f8b484f
|
|
@ -3210,7 +3210,9 @@ local passivityList = {
|
|||
local onSkillEnd = function(skill)
|
||||
if skill.type == BattleSkillType.Special then
|
||||
local list = RoleManager.Query(function(v) return v.camp == role.camp end)
|
||||
BattleUtil.SortByProp(list, RoleDataName.Hp, 1)
|
||||
--生命最少改成生命百分比最少 2020/09/29 by:王振兴
|
||||
--BattleUtil.SortByProp(list, RoleDataName.Hp, 1)
|
||||
BattleUtil.SortByHpFactor(list, 1)
|
||||
local index = 0
|
||||
for i = 1, #list do
|
||||
if not list[i]:IsRealDead() and index < 2 then
|
||||
|
|
@ -3637,7 +3639,7 @@ local passivityList = {
|
|||
end
|
||||
end
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.FinalBeDamage, onFinalBeDamage)
|
||||
role.Event:AddEvent(BattleEventName.FinalBeDamageEnd, onFinalBeDamage)
|
||||
|
||||
end,
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ BattleEventName = {
|
|||
RoleRelive = indexAdd(), -- 角色复活了
|
||||
FinalDamage = indexAdd(),
|
||||
FinalBeDamage = indexAdd(),
|
||||
|
||||
FinalBeDamageEnd = indexAdd(), --最后被攻击结束
|
||||
HitMiss = indexAdd(),
|
||||
BeHitMiss = indexAdd(),
|
||||
|
||||
|
|
|
|||
|
|
@ -354,6 +354,7 @@ function BattleUtil.ApplyDamage(skill, atkRole, defRole, damage, bCrit, damageTy
|
|||
end
|
||||
atkRole.Event:DispatchEvent(BattleEventName.FinalDamage, damagingFunc, defRole, damage, skill, dotType, bCrit, damageType)
|
||||
defRole.Event:DispatchEvent(BattleEventName.FinalBeDamage, damagingFunc, atkRole, damage, skill, dotType, bCrit, damageType)
|
||||
defRole.Event:DispatchEvent(BattleEventName.FinalBeDamageEnd, damagingFunc, atkRole, damage, skill, dotType, bCrit, damageType)
|
||||
BattleLogic.Event:DispatchEvent(BattleEventName.FinalDamage, damagingFunc, atkRole, defRole, damage, skill, dotType, bCrit, damageType)
|
||||
|
||||
--
|
||||
|
|
|
|||
Loading…
Reference in New Issue