Exemplo n.º 1
0
  @Override
  public void tick(EntityLiving living, MainClass m) {
    if (living.hasEffect(skillname) == 235) {
      living.addStatus("UNMOVE", 240, false);
      living.playAnimation("death", -1, 80);
    }
    if (living.hasEffect(skillname) == 235 - 80) {
      living.playAnimation("walk", -1, -1);
      explode(m, living.getLocation());

      m.getSoundPlayer().playSound("attack", true);
    }
  }
Exemplo n.º 2
0
 @Override
 public void reset(EntityLiving living, MainClass m) {
   this.skilllocs = new Location[1];
   this.skilllocs[0] = living.getLocation().clone();
   this.sender = living;
 }
Exemplo n.º 3
0
 private void hit(Location loc, EntityLiving goal) {
   if (Location.getDistance(loc, goal.getLocation()) < 0.5f) {
     goal.damage(1, true);
     goal.addStatus("UNMOVE", 40, true);
   }
 }