deep snow no longer slowz

This commit is contained in:
Chiss 2014-12-12 21:57:43 +11:00
parent 5d1a8af347
commit fb8b00200c

View File

@ -221,42 +221,42 @@ public class ArcticArmor extends Skill
}
}
@EventHandler
public void Slow(UpdateEvent event)
{
if (event.getType() != UpdateType.TICK)
return;
for (Player cur : UtilServer.getPlayers())
{
if (cur.getLocation().getChunk() == null)
continue;
Block block = cur.getLocation().getBlock();
if (block.getTypeId() != 78)
continue;
if (block.getData() == 0)
continue;
if (getLevel(cur) > 0)
continue;
int level = 0;
if (block.getData() == 2 || block.getData() == 3)
level = 1;
else if (block.getData() == 4 || block.getData() == 5)
level = 2;
else if (block.getData() == 6 || block.getData() == 7)
level = 3;
//Slow
Factory.Condition().Factory().Custom("Thick Snow", cur, cur,
ConditionType.SLOW, 1.9, level, false,
Material.SNOW_BALL, (byte)0, true);
}
}
// @EventHandler
// public void Slow(UpdateEvent event)
// {
// if (event.getType() != UpdateType.TICK)
// return;
//
// for (Player cur : UtilServer.getPlayers())
// {
// if (cur.getLocation().getChunk() == null)
// continue;
//
// Block block = cur.getLocation().getBlock();
//
// if (block.getTypeId() != 78)
// continue;
//
// if (block.getData() == 0)
// continue;
//
// if (getLevel(cur) > 0)
// continue;
//
// int level = 0;
// if (block.getData() == 2 || block.getData() == 3)
// level = 1;
// else if (block.getData() == 4 || block.getData() == 5)
// level = 2;
// else if (block.getData() == 6 || block.getData() == 7)
// level = 3;
//
// //Slow
// Factory.Condition().Factory().Custom("Thick Snow", cur, cur,
// ConditionType.SLOW, 1.9, level, false,
// Material.SNOW_BALL, (byte)0, true);
// }
// }
@EventHandler
public void Particle(UpdateEvent event)