Package lineage2.gameserver.model

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


    {
      actor.abortAttack(true, true);
    }
    if (actor.isCastingNow() && (getAttackTarget() == object))
    {
      actor.abortCast(true, true);
    }
    if (getAttackTarget() == object)
    {
      setAttackTarget(null);
    }
View Full Code Here


  @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

        realTarget = reflected ? activeChar : target;
        if (_skillInterrupt)
        {
          if ((realTarget.getCastingSkill() != null) && !realTarget.getCastingSkill().isMagic() && !realTarget.isRaid())
          {
            realTarget.abortCast(false, true);
          }
          if (!realTarget.isRaid())
          {
            realTarget.abortAttack(true, true);
          }
View Full Code Here

    {
      Hero.removeSkills(player);
    }
    if (player.isCastingNow())
    {
      player.abortCast(true, true);
    }
    for (Effect e : player.getEffectList().getAllEffects())
    {
      if ((e.getEffectType() != EffectType.Cubic) || (player.getSkillLevel(e.getSkill().getId()) <= 0))
      {
View Full Code Here

    if (_unselect == 0)
    {
      if (activeChar.isCastingNow())
      {
        Skill skill = activeChar.getCastingSkill();
        activeChar.abortCast((skill != null) && (skill.isHandler() || (skill.getHitTime() > 1000)), false);
      }
      else if (activeChar.getTarget() != null)
      {
        activeChar.setTarget(null);
      }
View Full Code Here

    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

    {
      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

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

      }
      _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()
      {
        @Override
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.