mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-07 12:11:22 +01:00
Fixed Heroes max health applied twice
This commit is contained in:
parent
be3aba8ab6
commit
00fdc120f4
@ -61,8 +61,9 @@ public class HeroesHook implements RPGHandler, Listener, AttackHandler {
|
||||
hero.addMaxMana("MMOItems", (int) data.getStats().getStat(ItemStats.MAX_MANA));
|
||||
hero.removeMaxStamina("MMOItems");
|
||||
hero.addMaxStamina("MMOItems", (int) data.getStats().getStat(MAX_STAMINA));
|
||||
|
||||
// Backwards compatibility. Max health is operated by MythicLib
|
||||
hero.removeMaxHealth("MMOItems");
|
||||
hero.addMaxHealth("MMOItems", data.getStats().getStat(ItemStats.MAX_HEALTH));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user