Ejemplo n.º 1
0
 public static void newAttack(Entity killer, Entity target)
 {
     if (killer.getLastAttack() > 0)
     {
         /*if (Environment.TickCount - killer.getLastAttack() >= (killer.getAttackSpeed() * 500)) {
             killer.setCombatTurns(killer.getAttackSpeed());
         }*/
     }
     else
     {
         killer.setCombatTurns(killer.getAttackSpeed());
     }
     killer.setEntityFocus(target.getClientIndex());
     killer.setTarget(target);
     checkAutoCast(killer, target);
     killer.setFaceLocation(target.getLocation());
 }