Examples of updatePvPStatus()


Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

              {
                // Signets are a special case, casted on target_self but don't harm self
                if (skill.getSkillType() != L2Skill.SkillType.SIGNET && skill.getSkillType() != L2Skill.SkillType.SIGNET_CASTTIME)
                {
                  player.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
                  activeChar.updatePvPStatus(player);
                }
              }
              else if (player instanceof L2Attackable)
              {
                switch (skill.getSkillType())
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

              if (player instanceof L2PcInstance)
              {
                // Casting non offensive skill on player with pvp flag set or with karma
                if (!player.equals(this) && (((L2PcInstance) player).getPvpFlag() > 0 || ((L2PcInstance) player).getKarma() > 0))
                {
                  activeChar.updatePvPStatus();
                }
              }
              else if (player instanceof L2Attackable && !(skill.getSkillType() == L2Skill.SkillType.SUMMON) && !(skill.getSkillType() == L2Skill.SkillType.BEAST_FEED) && !(skill.getSkillType() == L2Skill.SkillType.UNLOCK) && !(skill.getSkillType() == L2Skill.SkillType.DELUXE_KEY_UNLOCK))
              {
                activeChar.updatePvPStatus(this);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

                  activeChar.updatePvPStatus();
                }
              }
              else if (player instanceof L2Attackable && !(skill.getSkillType() == L2Skill.SkillType.SUMMON) && !(skill.getSkillType() == L2Skill.SkillType.BEAST_FEED) && !(skill.getSkillType() == L2Skill.SkillType.UNLOCK) && !(skill.getSkillType() == L2Skill.SkillType.DELUXE_KEY_UNLOCK))
              {
                activeChar.updatePvPStatus(this);
              }
            }
            player = null;
            // activeWeapon = null;
          }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

            L2PcInstance activeChar = null;
           
            if (this instanceof L2PcInstance)
            {
              activeChar = (L2PcInstance) this;
              activeChar.updatePvPStatus(activeChar);
            }
            else if (this instanceof L2Summon)
            {
              activeChar = ((L2Summon) this).getOwner();
            }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

      player = ((L2Summon) this).getOwner();
    }

    if(player != null)
    {
      player.updatePvPStatus(target);
    }

    // Check if hit isn't missed
    if(!hitted)
    {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

        if(cha instanceof L2PlayableInstance)
        {
          if(!(cha instanceof L2Summon
            && ((L2Summon) cha).getOwner() == caster))
          {
            caster.updatePvPStatus(cha);
          }
        }

        targets.add(cha);
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

            if (skill.isOffensive())
            {
              if ((player instanceof L2PcInstance) || (player instanceof L2Summon))
              {
                player.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
                activeChar.updatePvPStatus(player);
              }
              else if (player instanceof L2Attackable)
              {
                // notify the AI that she is attacked
                player.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

              if (player instanceof L2PcInstance)
              {
                // Casting non offensive skill on player with pvp flag set or with karma
                if (!player.equals(this) && ((((L2PcInstance) player).getPvpFlag() > 0) || (((L2PcInstance) player).getKarma() > 0)))
                {
                  activeChar.updatePvPStatus();
                }
              }
              else if ((player instanceof L2Attackable) && !(skill.getSkillType() == L2Skill.SkillType.SUMMON) && !(skill.getSkillType() == L2Skill.SkillType.BEAST_FEED) && !(skill.getSkillType() == L2Skill.SkillType.UNLOCK) && !(skill.getSkillType() == L2Skill.SkillType.DELUXE_KEY_UNLOCK))
              {
                activeChar.updatePvPStatus();
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

                  activeChar.updatePvPStatus();
                }
              }
              else if ((player instanceof L2Attackable) && !(skill.getSkillType() == L2Skill.SkillType.SUMMON) && !(skill.getSkillType() == L2Skill.SkillType.BEAST_FEED) && !(skill.getSkillType() == L2Skill.SkillType.UNLOCK) && !(skill.getSkillType() == L2Skill.SkillType.DELUXE_KEY_UNLOCK))
              {
                activeChar.updatePvPStatus();
              }
            }
          }
        }
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.updatePvPStatus()

      player = ((L2Summon) this).getOwner();
    }
   
    if (player != null)
    {
      player.updatePvPStatus(target);
    }
   
    // Check if hit isn't missed
    if (!hitted)
    {
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.