|
|
|
@ -778,7 +778,7 @@ public class CustomDamage { |
|
|
|
|
|
|
|
|
|
private static void reduceSwiftAegisBuff(Player p) { |
|
|
|
|
PlayerStructure pd = PlayerStructure.GetPlayerStructure(p); |
|
|
|
|
if (pd.swiftaegisamt>0) { |
|
|
|
|
/*if (pd.swiftaegisamt>0) { |
|
|
|
|
if (p.hasPotionEffect(PotionEffectType.DAMAGE_RESISTANCE)) { |
|
|
|
|
int resistancelv = GenericFunctions.getPotionEffectLevel(PotionEffectType.DAMAGE_RESISTANCE, p); |
|
|
|
|
int resistance_duration = GenericFunctions.getPotionEffectDuration(PotionEffectType.DAMAGE_RESISTANCE, p); |
|
|
|
@ -798,6 +798,12 @@ public class CustomDamage { |
|
|
|
|
} else { |
|
|
|
|
GenericFunctions.sendActionBarMessage(p, ChatColor.GRAY+"Swift Aegis Resistance Removed."); |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
pd.swiftaegisamt=Math.max(0, GenericFunctions.getSwiftAegisAmt(p)-1); |
|
|
|
|
if (GenericFunctions.getSwiftAegisAmt(p)>0) { |
|
|
|
|
GenericFunctions.sendActionBarMessage(p, ChatColor.GRAY+"Resist "+WorldShop.toRomanNumeral(GenericFunctions.getSwiftAegisAmt(p)+1)); |
|
|
|
|
} else { |
|
|
|
|
GenericFunctions.sendActionBarMessage(p, ChatColor.GRAY+"Swift Aegis Resist Removed."); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|