Esempio n. 1
0
  @Override
  public void useSkill(Character character, float targetX, float targetY, float targetZ) {
    if (target != null) {
      if (target.isPlayer()) NpcFastShot.startShot(character, this, target);
      else FastShot.startShot(character, this, target.getX(), target.getY(), target.getZ());
    }

    target = null;
  }
Esempio n. 2
0
  @Override
  public void useSkill(Character character, float targetX, float targetY, float targetZ) {
    if (target != null)
      FastShot.startShot(
          character,
          this,
          target.getX(),
          target.getY(),
          target.getZ() + (target.getGeomHeight() * 0.5F));

    target = null;
  }