mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-07 01:32:22 +00:00
need to watch those conversions on +=, -=, *= etc
This commit is contained in:
parent
6ba7486905
commit
5ce4bb776e
@ -568,7 +568,7 @@ void Mob::MeleeMitigation(Mob *attacker, int32 &damage, int32 minhit, ExtraAttac
|
||||
}
|
||||
|
||||
if (opts) {
|
||||
armor *= (int)(1.0f - opts->armor_pen_percent);
|
||||
armor = (int)(armor * (1.0f - opts->armor_pen_percent));
|
||||
armor -= opts->armor_pen_flat;
|
||||
}
|
||||
|
||||
@ -696,7 +696,7 @@ void Mob::MeleeMitigation(Mob *attacker, int32 &damage, int32 minhit, ExtraAttac
|
||||
}
|
||||
}
|
||||
|
||||
damage -= (int32)(aa_mit * damage);
|
||||
damage = (int32)(damage - (aa_mit * damage));
|
||||
|
||||
if(damage != 0 && damage < minhit)
|
||||
damage = minhit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user