back_recharge
wangyuan 2019-08-19 10:54:08 +08:00
parent 069d544420
commit afd51eb5b1
2 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ local passivityList = {
BattleUtil.RandomAction(f1, function () BattleUtil.RandomAction(f1, function ()
local arr = BattleUtil.ChooseTarget(role, 10001) local arr = BattleUtil.ChooseTarget(role, 10001)
if arr[1] then if arr[1] then
arr[1]:AddBuff(Buff.Create(role, BuffName.PropertyChange, f3, propertyList[pro1], floor(role:GetRoleData(propertyList[pro2]) * f2), 1)) arr[1]:AddBuff(Buff.Create(role, BuffName.PropertyChange, f3, propertyList[pro2], floor(role:GetRoleData(propertyList[pro1]) * f2), 1))
end end
end) end)
end end

View File

@ -194,12 +194,12 @@ function BattleUtil.ApplyDamage(atkRole, defRole, damage, bCrit, damageType, isD
atkRole.Event:DispatchEvent(BattleEventName.RoleDamage, defRole, damage, bCrit, finalDmg, damageType) atkRole.Event:DispatchEvent(BattleEventName.RoleDamage, defRole, damage, bCrit, finalDmg, damageType)
defRole.Event:DispatchEvent(BattleEventName.RoleBeDamaged, atkRole, damage, bCrit, finalDmg, damageType) defRole.Event:DispatchEvent(BattleEventName.RoleBeDamaged, atkRole, damage, bCrit, finalDmg, damageType)
if bCrit then if bCrit then
atkRole.Event:DispatchEvent(BattleEventName.RoleCrit, defRole) atkRole.Event:DispatchEvent(BattleEventName.RoleCrit, defRole, damage, bCrit, finalDmg, damageType)
defRole.Event:DispatchEvent(BattleEventName.RoleBeCrit, atkRole) defRole.Event:DispatchEvent(BattleEventName.RoleBeCrit, atkRole, damage, bCrit, finalDmg, damageType)
end end
if not isDot then if not isDot then
atkRole.Event:DispatchEvent(BattleEventName.RoleHit, defRole) atkRole.Event:DispatchEvent(BattleEventName.RoleHit, defRole, damage, bCrit, finalDmg, damageType)
defRole.Event:DispatchEvent(BattleEventName.RoleBeHit, atkRole) defRole.Event:DispatchEvent(BattleEventName.RoleBeHit, atkRole, damage, bCrit, finalDmg, damageType)
end end
end end
return finalDmg return finalDmg