Examples of calcPhysDam()


Examples of net.sf.l2j.gameserver.skills.Formulas.calcPhysDam()

            boolean soul = (weapon != null
                && weapon.getChargedSoulshot() == L2ItemInstance.CHARGED_SOULSHOT && weapon.getItemType() != L2WeaponType.DAGGER);

            if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0) damage = 0;
            else damage = (int) f.calcPhysDam(activeChar, target, skill, shld, false, dual, soul);
            if (crit) damage *= 2; // PDAM Critical damage always 2x and not affected by buffs

            if (damage > 5000 && activeChar instanceof L2PcInstance)
            {
                String name = "";
View Full Code Here

Examples of net.sf.l2j.gameserver.skills.Formulas.calcPhysDam()

      double _pdef1 = npc1.getPDef(npc2);
      pdef1 += _pdef1;

      if (!_miss1) {
        npc1.setAttackingBodypart();
        double _dmg1 = f.calcPhysDam(npc1, npc2, null, _shld1, _crit1, false, false);
        dmg1 += _dmg1;
        npc1.abortAttack();
      }
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.skills.Formulas.calcPhysDam()

      double _pdef2 = npc2.getPDef(npc1);
      pdef2 += _pdef2;

      if (!_miss2) {
        npc2.setAttackingBodypart();
        double _dmg2 = f.calcPhysDam(npc2, npc1, null, _shld2, _crit2, false, false);
        dmg2 += _dmg2;
        npc2.abortAttack();
      }
    }
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.