mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed bug where Shake wouldn't damage mobs whose max health was less
than 4. Fixes #845
This commit is contained in:
parent
171026ba23
commit
ed09d1b390
@ -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 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 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 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
|
Version 1.4.03
|
||||||
+ Added option to advanced.yml to determine the # of enchant levels used when buffing Super Breaker & Giga Drill Breaker
|
+ Added option to advanced.yml to determine the # of enchant levels used when buffing Super Breaker & Giga Drill Breaker
|
||||||
|
@ -189,7 +189,7 @@ public class FishingManager extends SkillManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Misc.dropItem(target.getLocation(), drop);
|
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.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user