Reduce snowball damage and disable snow during win effects

This commit is contained in:
Sam 2017-11-08 12:59:39 +00:00 committed by Alexander Meech
parent 21c95b92a2
commit 98ef9764d7

View File

@ -71,7 +71,7 @@ public class SnowFight extends TeamGame
};
private static final int MAX_SNOW_BALLS = 16;
private static final int MAX_SNOW_HEIGHT = 8;
private static final double SNOW_BALL_DAMAGE = 3.25;
private static final int SNOW_BALL_DAMAGE = 3;
private static final ItemStack SNOW_BALL = new ItemStack(Material.SNOW_BALL);
private static final long GUN_MODE_TIME = TimeUnit.MINUTES.toMillis(3);
private static final long BLIZZARD_TIME = TimeUnit.MINUTES.toMillis(5);
@ -135,14 +135,15 @@ public class SnowFight extends TeamGame
World world = WorldData.World;
if (_blizzard)
if (_blizzard && IsLive())
{
world.setStorm(true);
world.setThundering(false);
}
else if (GetState() == GameState.End)
else if (WorldWeatherEnabled)
{
world.setStorm(false);
WorldWeatherEnabled = false;
}
}