Ejemplo 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;
  }
Ejemplo 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;
  }