mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Fixed an issue with skill buffs not applying to mana & stamina for skill requirements
This commit is contained in:
parent
eeaf13e2c0
commit
162f0cf3c4
@ -108,13 +108,13 @@ public class AbilityData extends Skill {
|
||||
return false;
|
||||
|
||||
// Check for mana cost
|
||||
if (hasModifier("mana") && rpgPlayer.getMana() < getParameter("mana")) {
|
||||
if (hasModifier("mana") && rpgPlayer.getMana() < meta.getParameter("mana")) {
|
||||
Message.NOT_ENOUGH_MANA.format(ChatColor.RED).send(player);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for stamina cost
|
||||
if (hasModifier("stamina") && rpgPlayer.getStamina() < getParameter("stamina")) {
|
||||
if (hasModifier("stamina") && rpgPlayer.getStamina() < meta.getParameter("stamina")) {
|
||||
Message.NOT_ENOUGH_STAMINA.format(ChatColor.RED).send(player);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user