Examples of stopHating()


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

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

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

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

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

      setIntention(AI_INTENTION_ACTIVE);
    }
View Full Code Here

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

    {
      // 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

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2FortSiegeGuardInstance.stopHating()

    // never attack defenders
    if(attackTarget instanceof L2PcInstance && sGuard.getFort().getSiege().checkIsDefender(((L2PcInstance) attackTarget).getClan()))
    {
      // Cancel the target
      sGuard.stopHating(attackTarget);
      _actor.setTarget(null);
      setIntention(AI_INTENTION_IDLE, null, null);
      return;
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2FortSiegeGuardInstance.stopHating()

    if(!GeoData.getInstance().canSeeTarget(_actor, attackTarget))
    {
      // Siege guards differ from normal mobs currently:
      // If target cannot seen, don't attack any more
      sGuard.stopHating(attackTarget);
      _actor.setTarget(null);
      setIntention(AI_INTENTION_IDLE, null, null);
      return;
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2SiegeGuardInstance.stopHating()

    // never attack defenders
    if(attackTarget instanceof L2PcInstance && sGuard.getCastle().getSiege().checkIsDefender(((L2PcInstance) attackTarget).getClan()))
    {
      // Cancel the target
      sGuard.stopHating(attackTarget);
      _actor.setTarget(null);
      setIntention(AI_INTENTION_IDLE, null, null);
      return;
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2SiegeGuardInstance.stopHating()

    if(!GeoData.getInstance().canSeeTarget(_actor, attackTarget))
    {
      // Siege guards differ from normal mobs currently:
      // If target cannot seen, don't attack any more
      sGuard.stopHating(attackTarget);
      _actor.setTarget(null);
      setIntention(AI_INTENTION_IDLE, null, null);
      return;
    }
View Full Code Here

Examples of net.sf.l2j.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

Examples of net.sf.l2j.gameserver.model.L2Attackable.stopHating()

        {
            // 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;
            _attackTarget = 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.