Пример #1
0
  @Override
  public boolean checkCondition(Character attacker, float targetX, float targetY, float targetZ) {
    if (attacker.getSummon() == null) {
      attacker.sendMessage("У вас нет вызванных питомцев.");
      return false;
    }

    return super.checkCondition(attacker, targetX, targetY, targetZ);
  }
Пример #2
0
  @Override
  public void useSkill(Character character, float targetX, float targetY, float targetZ) {
    super.useSkill(character, targetX, targetY, targetZ);

    Summon summon = character.getSummon();

    if (summon == null) return;

    summon.getAI().abortAttack();
  }