Examples of abortAttack()


Examples of l2p.gameserver.model.instances.L2NpcInstance.abortAttack()

      searchBrother();
    }
    else if(_brother.getCurrentHpPercents() > 20 && actor.getCurrentHp() - damage < actor.getMaxHp() / 10)
    {
      // Если у брата > 20% ХП, то невозможно опустить ХП ниже 10%
      actor.abortAttack(true, false);
      actor.abortCast(true);
      actor.stopMove();
      clearTasks();
      addTaskBuff(actor, SKILL_DEFEAT);
      addTaskBuff(actor, SKILL_ARISE);
View Full Code Here

Examples of lineage2.gameserver.model.Creature.abortAttack()

      return;
    }
    Creature actor = getActor();
    if (actor.isAttackingNow() && (getAttackTarget() == object))
    {
      actor.abortAttack(true, true);
    }
    if (actor.isCastingNow() && (getAttackTarget() == object))
    {
      actor.abortCast(true, true);
    }
View Full Code Here

Examples of lineage2.gameserver.model.Creature.abortAttack()

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    Creature actor = getActor();
    actor.abortAttack(true, true);
    actor.abortCast(true, true);
    actor.stopMove();
    actor.broadcastPacket(new Die(actor));
    setIntention(CtrlIntention.AI_INTENTION_IDLE);
  }
View Full Code Here

Examples of lineage2.gameserver.model.Creature.abortAttack()

          {
            realTarget.abortCast(false, true);
          }
          if (!realTarget.isRaid())
          {
            realTarget.abortAttack(true, true);
          }
        }
        getEffects(activeChar, target, getActivateRate() > 0, false, reflected);
      }
    }
View Full Code Here

Examples of lineage2.gameserver.model.Player.abortAttack()

    player.sendPacket(new SkillCoolTime(player));
    ItemInstance wpn = player.getActiveWeaponInstance();
    if ((wpn != null) && wpn.isHeroWeapon())
    {
      player.getInventory().unEquipItem(wpn);
      player.abortAttack(true, true);
    }
    Set<Integer> activeSoulShots = player.getAutoSoulShot();
    for (int itemId : activeSoulShots)
    {
      player.removeAutoSoulShot(itemId);
View Full Code Here

Examples of lineage2.gameserver.model.Player.abortAttack()

    Player player = _playerRef.get();
    if (player == null)
    {
      return;
    }
    player.abortAttack(true, true);
    player.abortCast(true, true);
    player.stopMove();
    if (_count > 0)
    {
      if (player.getInventory().destroyItemByItemId(8615, _count))
View Full Code Here

Examples of lineage2.gameserver.model.Player.abortAttack()

    {
      Player player = cw.getOnlineOwner();
      if (player != null)
      {
        _log.info("CursedWeaponsManager: " + cw.getName() + " being removed online from " + player + ".");
        player.abortAttack(true, true);
        player.setKarma(cw.getPlayerKarma());
        player.setPkKills(cw.getPlayerPkKills());
        player.setCursedWeaponEquippedId(0);
        player.setTransformation(0);
        player.setTransformationName(null);
View Full Code Here

Examples of lineage2.gameserver.model.Player.abortAttack()

    if (item.isEquipped())
    {
      final ItemInstance weapon = player.getActiveWeaponInstance();
      if (item.equals(weapon))
      {
        player.abortAttack(true, true);
        player.abortCast(true, true);
      }
      player.sendDisarmMessage(item);
      player.getInventory().unEquipItem(item);
      return false;
View Full Code Here

Examples of lineage2.gameserver.model.Player.abortAttack()

      ItemInstance weapon = activeChar.getActiveWeaponInstance();
      if (weapon == null)
      {
        return;
      }
      activeChar.abortAttack(true, true);
      activeChar.abortCast(true, true);
      activeChar.sendDisarmMessage(weapon);
    }
    activeChar.getInventory().unEquipItemInBodySlot(_slot);
  }
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.abortAttack()

        actor.stopImmobilized();
      }
      _notUsedTransform = false;
      clearTasks();
      spawnTraps();
      actor.abortAttack(true, false);
      actor.abortCast(true, false);
      actor.setIsInvul(true);
      actor.doCast(TIAT_TRANSFORMATION_SKILL, actor, true);
      ThreadPoolManager.getInstance().schedule(new RunnableImpl()
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.