Corrections to match proper ImmobileDamageResist effect logic.

This commit is contained in:
MobiusDevelopment
2021-01-10 01:22:27 +00:00
parent 71d48985e4
commit d9f63e6f77
28 changed files with 146 additions and 146 deletions

View File

@ -4415,7 +4415,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (target.isImmobilized())
{
damage *= _stat.getMul(Stat.IMMOBILE_DAMAGE_BONUS, 1);
damage /= target.getStat().getMul(Stat.IMMOBILE_DAMAGE_RESIST, 1);
damage *= Math.max(0.22, target.getStat().getMul(Stat.IMMOBILE_DAMAGE_RESIST, 1));
}
if (!reflect && !isDOT)