mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Logging Mob::TryCriticalHit [skip ci]
This commit is contained in:
parent
c684709712
commit
28c8af96e3
@ -333,6 +333,13 @@ function TryCriticalHit(e)
|
||||
critChance = critChance + opts.crit_flat;
|
||||
end
|
||||
|
||||
eq.debug(
|
||||
string.format("[%s] [Mob::TryCriticalHit] CritChance [%i]",
|
||||
e.self:GetCleanName(),
|
||||
critChance
|
||||
)
|
||||
);
|
||||
|
||||
if (critChance > 0) then
|
||||
|
||||
critChance = critChance / 100;
|
||||
@ -895,7 +902,7 @@ function CommonOutgoingHitSuccess(e)
|
||||
)
|
||||
);
|
||||
|
||||
e = TryCriticalHit(e);
|
||||
e = TryCriticalHit(e);
|
||||
e.self:CheckNumHitsRemaining(5, -1, 65535);
|
||||
e.IgnoreDefault = true;
|
||||
return e;
|
||||
|
||||
@ -3989,6 +3989,14 @@ void Mob::TryCriticalHit(Mob *defender, uint16 skill, int32 &damage, ExtraAttack
|
||||
critChance += opts->crit_flat;
|
||||
}
|
||||
|
||||
Log.Out(
|
||||
Logs::General,
|
||||
Logs::Combat,
|
||||
"[%s] [Mob::TryCriticalHit] CritChance [%i]",
|
||||
GetCleanName(),
|
||||
critChance
|
||||
);
|
||||
|
||||
if(critChance > 0) {
|
||||
|
||||
critChance /= 100;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user