Remove Regeneration when the Blizzard starts
This commit is contained in:
parent
e0d8f7aed5
commit
21c95b92a2
@ -368,6 +368,12 @@ public class SnowFight extends TeamGame
|
|||||||
Player player = entry.getKey();
|
Player player = entry.getKey();
|
||||||
long lastDamage = entry.getValue();
|
long lastDamage = entry.getValue();
|
||||||
|
|
||||||
|
if (_blizzard)
|
||||||
|
{
|
||||||
|
player.removePotionEffect(PotionEffectType.REGENERATION);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (UtilTime.elapsed(lastDamage, COMBAT_TIME) && !player.hasPotionEffect(PotionEffectType.REGENERATION))
|
if (UtilTime.elapsed(lastDamage, COMBAT_TIME) && !player.hasPotionEffect(PotionEffectType.REGENERATION))
|
||||||
{
|
{
|
||||||
player.addPotionEffect(REGENERATION);
|
player.addPotionEffect(REGENERATION);
|
||||||
|
Loading…
Reference in New Issue
Block a user