Examples of stopHating()


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

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

      setIntention(AI_INTENTION_ACTIVE);
    }
        else
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 (getAttackTarget() != null)
            {
                L2Attackable npc = (L2Attackable) _actor;
                npc.stopHating(getAttackTarget());
            }

            // Set the AI Intention to AI_INTENTION_ACTIVE
            setIntention(AI_INTENTION_ACTIVE);
View Full Code Here

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