Examples of reflectSkill()


Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

          continue;
      }

      if(skill.getSkillType() != L2Skill.SkillType.BUFF && skill.getSkillType() != L2Skill.SkillType.HOT && skill.getSkillType() != L2Skill.SkillType.CPHOT && skill.getSkillType() != L2Skill.SkillType.MPHOT && skill.getSkillType() != L2Skill.SkillType.UNDEAD_DEFENSE && skill.getSkillType() != L2Skill.SkillType.AGGDEBUFF && skill.getSkillType() != L2Skill.SkillType.CONT)
      {
        if(target.reflectSkill(skill))
          target = activeChar;
      }

      // Walls and Door should not be buffed
      if(target instanceof L2DoorInstance && (skill.getSkillType() == L2Skill.SkillType.BUFF || skill.getSkillType() == L2Skill.SkillType.HOT))
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

        activeChar.sendDamageMessage(target, damage, mcrit, false, false);

        if(skill.hasEffects())
        {
          if(target.reflectSkill(skill))
          {
            activeChar.stopSkillEffects(skill.getId());
            skill.getEffects(null, activeChar,false,sps,bss);
            SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
            sm.addSkillName(skill.getId());
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

          {
            target = activeChar;
          }
        case ROOT:
        {
          if(target.reflectSkill(skill))
            target = activeChar;

          if(Formulas.getInstance().calcSkillSuccess(activeChar, target, skill, ss, sps, bss))
            skill.getEffects(activeChar, target, ss, sps, bss);
          else
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

          break;
        }
        case SLEEP:
        case PARALYZE: //use same as root for now
        {
          if(target.reflectSkill(skill))
            target = activeChar;

          if(Formulas.getInstance().calcSkillSuccess(activeChar, target, skill, ss, sps, bss))
            skill.getEffects(activeChar, target, ss, sps, bss);
          else
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

          break;
        }
        case CONFUSION:
        case MUTE:
        {
          if(target.reflectSkill(skill))
            target = activeChar;

          if(Formulas.getInstance().calcSkillSuccess(activeChar, target, skill, ss, sps, bss))
          {
            skill.getEffects(activeChar, target, ss, sps, bss);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

        }
        case MAGE_BANE: {
          for (L2Object t : targets) {
            L2Character target1 = (L2Character) t;

            if (target1.reflectSkill(skill)) {
              target1 = activeChar;
            }
            if (!Formulas.getInstance().calcSkillSuccess(activeChar,
                target1, skill, ss, sps, bss)) {
              continue;
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

          break;
        }
        case WARRIOR_BANE: {
          for (L2Object t : targets) {
            L2Character target1 = (L2Character) t;
            if (target1.reflectSkill(skill)) {
              target1 = activeChar;
            }
            if (!Formulas.getInstance().calcSkillSuccess(activeChar,
                target1, skill, ss, sps, bss)) {
              continue;
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

        if (!target.isInvul())
        {
         
          if (skill.hasEffects())
          {
            if (target.reflectSkill(skill))
            {
              activeChar.stopSkillEffects(skill.getId());
             
              skill.getEffects(null, activeChar, ss, sps, bss);
              SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

    for(L2Object target2 : targets)
    {
      target = (L2Character) target2;

      if(target.reflectSkill(skill))
        target = activeChar;
     
      boolean acted = Formulas.getInstance().calcMagicAffected(activeChar, target, skill);
      if(target.isInvul() || !acted)
      {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reflectSkill()

       
        activeChar.sendDamageMessage(target, damage, mcrit, false, false);
       
        if (hasEffects() && getTargetType() != SkillTargetType.TARGET_CORPSE_MOB)
        {
          if (target.reflectSkill(this))
          {
            activeChar.stopSkillEffects(getId());
            getEffects(null, activeChar, false, sps, bss);
            SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
            sm.addSkillName(getId());
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.