Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Attackable.stopHating()


          if(Formulas.getInstance().calcSkillSuccess(activeChar, target, skill, ss, sps, bss))
          {
            if(target instanceof L2Attackable)
            {
              L2Attackable targ = (L2Attackable) target;
              targ.stopHating(activeChar);
              if(targ.getMostHated() == null)
              {
                ((L2AttackableAI) targ.getAI()).setGlobalAggro(-25);
                targ.clearAggroList();
                targ.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
View Full Code Here


      // Stop hating this target after the attack timeout or if target is dead
      if(attackTarget != null)
      {
        L2Attackable npc = (L2Attackable) _actor;

        npc.stopHating(attackTarget);

        npc = null;
      }

      // Cancel target and timeout
View Full Code Here

    {
      if(getAttackTarget() != null)
      {
        // stop hating
        L2Attackable npc = (L2Attackable) _actor;
        npc.stopHating(getAttackTarget());
        npc = null;
      }

      setIntention(AI_INTENTION_ACTIVE);
    }
View Full Code Here

    {
      // Stop hating this target after the attack timeout or if target is dead
      if(attackTarget != null)
      {
        L2Attackable npc = (L2Attackable) _actor;
        npc.stopHating(attackTarget);
      }

      // Cancel target and timeout
      _attackTimeout = Integer.MAX_VALUE;
      setAttackTarget(null);
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.