Fixed bug where Shake wouldn't damage mobs whose max health was less

than 4.

Fixes #845
This commit is contained in:
GJ
2013-03-17 08:11:20 -04:00
parent 171026ba23
commit ed09d1b390
2 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class FishingManager extends SkillManager {
}
Misc.dropItem(target.getLocation(), drop);
CombatUtils.dealDamage(target, target.getMaxHealth() / 4); // Make it so you can shake a mob no more than 4 times.
CombatUtils.dealDamage(target, Math.max(target.getMaxHealth() / 4, 1)); // Make it so you can shake a mob no more than 4 times.
}
}