Remove Regeneration when the Blizzard starts

This commit is contained in:
Sam 2017-11-07 12:00:10 +00:00 committed by Alexander Meech
parent e0d8f7aed5
commit 21c95b92a2
1 changed files with 6 additions and 0 deletions

View File

@ -368,6 +368,12 @@ public class SnowFight extends TeamGame
Player player = entry.getKey();
long lastDamage = entry.getValue();
if (_blizzard)
{
player.removePotionEffect(PotionEffectType.REGENERATION);
return true;
}
if (UtilTime.elapsed(lastDamage, COMBAT_TIME) && !player.hasPotionEffect(PotionEffectType.REGENERATION))
{
player.addPotionEffect(REGENERATION);