コード例 #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;
  }
コード例 #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;
  }