@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); } }
private void hit(Location loc, EntityLiving goal) { if (Location.getDistance(loc, goal.getLocation()) < 0.5f) { goal.damage(1, true); goal.addStatus("UNMOVE", 40, true); } }