Examples of reflectSkill()


Examples of net.sf.l2j.gameserver.model.L2Character.reflectSkill()

            {
                activeChar.sendDamageMessage(target, damage, false, crit, false);

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

Examples of net.sf.l2j.gameserver.model.L2Character.reflectSkill()

      //calculate chance based on DEX, Position and on self BUFF
      if(((skill.getCondition() & L2Skill.COND_BEHIND) != 0) && _successChance == BEHIND || ((skill.getCondition() & L2Skill.COND_CRIT) != 0) && Formulas.getInstance().calcBlow(activeChar, target, _successChance))
      {
        if (skill.hasEffects())
        {
          if (target.reflectSkill(skill))
          {
            activeChar.stopSkillEffects(skill.getId());
            skill.getEffects(null, activeChar);
            SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
            sm.addSkillName(skill.getId());
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Character.reflectSkill()

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

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

Examples of net.sf.l2j.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);
                    else
View Full Code Here

Examples of net.sf.l2j.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))
                    {
                        // stop same type effect if avaiable
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Character.reflectSkill()

              {
                    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 net.sf.l2j.gameserver.model.L2Character.reflectSkill()

              {
                    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 net.sf.l2j.gameserver.model.L2Character.reflectSkill()

            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 net.sf.l2j.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);
              SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
            sm.addSkillName(skill.getId());
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Character.reflectSkill()

        }
    for (int index = 0; index < targets.length; index++)
    {
      target = (L2Character) targets[index];

            if(target.reflectSkill(skill))
              target = activeChar;

      boolean acted = Formulas.getInstance().calcMagicAffected(activeChar, target, skill);
      if (target.isInvul() || !acted)
      {
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.