Examples of AttackInfo


Examples of lineage2.gameserver.stats.Formulas.AttackInfo

          if (!corpseSkill)
          {
            double damage, reflectableDamage = 0;
            if (isMagic())
            {
              AttackInfo info = Formulas.calcMagicDam(activeChar, realTarget, this, sps);
              damage = info.damage;
              reflectableDamage = info.reflectableDamage;
            }
            else
            {
              AttackInfo info = Formulas.calcPhysDam(activeChar, realTarget, this, false, false, ss, false);
              damage = info.damage;
              reflectableDamage = info.reflectableDamage;
              if (info.lethal_dmg > 0)
              {
                realTarget.reduceCurrentHp(info.lethal_dmg, reflectableDamage, activeChar, this, true, true, false, false, false, false, false);
View Full Code Here

Examples of lineage2.gameserver.stats.Formulas.AttackInfo

        }
        reflected = (target != activeChar) && target.checkReflectSkill(activeChar, this);
        realTarget = reflected ? activeChar : target;
        if (getPower() > 0)
        {
          AttackInfo info = Formulas.calcPhysDam(activeChar, realTarget, this, false, false, ss, false);
          if (info.lethal_dmg > 0)
          {
            realTarget.reduceCurrentHp(info.lethal_dmg, info.reflectableDamage, activeChar, this, true, true, false, false, false, false, false);
          }
          realTarget.reduceCurrentHp(info.damage, info.reflectableDamage, activeChar, this, true, true, false, true, false, false, true);
View Full Code Here

Examples of lineage2.gameserver.stats.Formulas.AttackInfo

      }
      reflected = target.checkReflectSkill(activeChar, this);
      realTarget = reflected ? activeChar : target;
      if (getPower() > 0)
      {
        AttackInfo info = Formulas.calcPhysDam(activeChar, realTarget, this, false, false, ss, false);
        if (info.lethal_dmg > 0)
        {
          realTarget.reduceCurrentHp(info.lethal_dmg, info.reflectableDamage, activeChar, this, true, true, false, false, false, false, false);
        }
        realTarget.reduceCurrentHp(info.damage, info.reflectableDamage, activeChar, this, true, true, false, true, false, false, true);
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.