deep snow no longer slowz
This commit is contained in:
parent
5d1a8af347
commit
fb8b00200c
@ -221,42 +221,42 @@ public class ArcticArmor extends Skill
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
// @EventHandler
|
||||||
public void Slow(UpdateEvent event)
|
// public void Slow(UpdateEvent event)
|
||||||
{
|
// {
|
||||||
if (event.getType() != UpdateType.TICK)
|
// if (event.getType() != UpdateType.TICK)
|
||||||
return;
|
// return;
|
||||||
|
//
|
||||||
for (Player cur : UtilServer.getPlayers())
|
// for (Player cur : UtilServer.getPlayers())
|
||||||
{
|
// {
|
||||||
if (cur.getLocation().getChunk() == null)
|
// if (cur.getLocation().getChunk() == null)
|
||||||
continue;
|
// continue;
|
||||||
|
//
|
||||||
Block block = cur.getLocation().getBlock();
|
// Block block = cur.getLocation().getBlock();
|
||||||
|
//
|
||||||
if (block.getTypeId() != 78)
|
// if (block.getTypeId() != 78)
|
||||||
continue;
|
// continue;
|
||||||
|
//
|
||||||
if (block.getData() == 0)
|
// if (block.getData() == 0)
|
||||||
continue;
|
// continue;
|
||||||
|
//
|
||||||
if (getLevel(cur) > 0)
|
// if (getLevel(cur) > 0)
|
||||||
continue;
|
// continue;
|
||||||
|
//
|
||||||
int level = 0;
|
// int level = 0;
|
||||||
if (block.getData() == 2 || block.getData() == 3)
|
// if (block.getData() == 2 || block.getData() == 3)
|
||||||
level = 1;
|
// level = 1;
|
||||||
else if (block.getData() == 4 || block.getData() == 5)
|
// else if (block.getData() == 4 || block.getData() == 5)
|
||||||
level = 2;
|
// level = 2;
|
||||||
else if (block.getData() == 6 || block.getData() == 7)
|
// else if (block.getData() == 6 || block.getData() == 7)
|
||||||
level = 3;
|
// level = 3;
|
||||||
|
//
|
||||||
//Slow
|
// //Slow
|
||||||
Factory.Condition().Factory().Custom("Thick Snow", cur, cur,
|
// Factory.Condition().Factory().Custom("Thick Snow", cur, cur,
|
||||||
ConditionType.SLOW, 1.9, level, false,
|
// ConditionType.SLOW, 1.9, level, false,
|
||||||
Material.SNOW_BALL, (byte)0, true);
|
// Material.SNOW_BALL, (byte)0, true);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void Particle(UpdateEvent event)
|
public void Particle(UpdateEvent event)
|
||||||
|
Loading…
Reference in New Issue
Block a user