Examples of abortCast()


Examples of l2p.gameserver.model.L2Player.abortCast()

      if(weapon != null && uneq == weapon)
      {
        uneq.setChargedSpiritshot(L2ItemInstance.CHARGED_NONE);
        uneq.setChargedSoulshot(L2ItemInstance.CHARGED_NONE);
        cha.abortAttack(true, true);
        cha.abortCast(true);
      }
    }
    cha.refreshExpertisePenalty();
    cha.broadcastUserInfo(true);
  }
View Full Code Here

Examples of l2p.gameserver.model.L2Player.abortCast()

        Hero.removeSkills(player);
      }
      // Abort casting if player casting
      if(player.isCastingNow())
      {
        player.abortCast(true);
      }
      // Удаляем чужие кубики
      for(L2CubicInstance cubic : player.getCubics())
      {
        if(cubic.isGivenByOther())
View Full Code Here

Examples of l2p.gameserver.model.L2Player.abortCast()

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

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

    }
    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);
      for(L2Playable playable : L2World.getAroundPlayables(actor))
View Full Code Here

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

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

  @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.abortCast()

        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

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

    {
      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

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

    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

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

    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
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.