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

@ -11,6 +11,7 @@ Version 1.4.04-dev
= Fixed bug where trying to activate a Chimaera Wing would require one item too much
= Fixed bug where Treefeller would try to cut too many leaves and reach the threshold when it shouldn't
= Fixed bug where Mining wasn't awarding double drops
= Fixed bug where Shake wouldn't damage mobs whose max health was less than 4
Version 1.4.03
+ Added option to advanced.yml to determine the # of enchant levels used when buffing Super Breaker & Giga Drill Breaker

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.
}
}