Fixed regen aura... wasnt working at all

This commit is contained in:
Chiss 2013-10-28 21:35:16 +11:00
parent f0f7a4156f
commit 3142bd517d
2 changed files with 7 additions and 5 deletions

View File

@ -73,11 +73,13 @@ public class MobZombie extends CreatureBase<Zombie> implements InterfaceMove
public void Speed()
{
if (GetEntity().getTicksLived() > 3600)
if (GetEntity().getTicksLived() > 2400)
Host.Manager.GetCondition().Factory().Speed("Speed", GetEntity(), GetEntity(), 10, 3, false, false, false);
else if (GetEntity().getTicksLived() > 1800)
Host.Manager.GetCondition().Factory().Speed("Speed", GetEntity(), GetEntity(), 10, 2, false, false, false);
else if (GetEntity().getTicksLived() > 2400)
Host.Manager.GetCondition().Factory().Speed("Speed", GetEntity(), GetEntity(), 10, 1, false, false, false);
else if (GetEntity().getTicksLived() > 1200)
Host.Manager.GetCondition().Factory().Speed("Speed", GetEntity(), GetEntity(), 10, 1, false, false, false);
else if (GetEntity().getTicksLived() > 600)
Host.Manager.GetCondition().Factory().Speed("Speed", GetEntity(), GetEntity(), 10, 0, false, false, false);
}
}

View File

@ -91,7 +91,7 @@ public class KitRobinHood extends SmashKit
@EventHandler
public void Aura(UpdateEvent event)
{
if (event.getType() != UpdateType.FAST)
if (event.getType() != UpdateType.SLOW)
return;
for (Player player : Manager.GetGame().GetPlayers(true))
@ -107,7 +107,7 @@ public class KitRobinHood extends SmashKit
if (UtilMath.offset(player, other) > 8)
continue;
Manager.GetCondition().Factory().Regen("Aura", other, player, 1.9, 0, false, false, false);
Manager.GetCondition().Factory().Regen("Aura", other, player, 4.9, 0, false, false, false);
}
}
}