Examples of calcCrit()


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

            boolean dual = activeChar.isUsingDualWeapon();
            boolean shld = f.calcShldUse(activeChar, target);
            // PDAM critical chance not affected by buffs, only by STR. Only some skills are meant to crit.
            boolean crit = false;
            if (skill.getBaseCritRate() > 0)
              crit = f.calcCrit(skill.getBaseCritRate() * 10 * f.getSTRBonus(activeChar));

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

            if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0) damage = 0;
View Full Code Here

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

    {
      boolean _miss1 = f.calcHitMiss(npc1, npc2);
      if (_miss1) miss1++;
      boolean _shld1 = f.calcShldUse(npc1, npc2);
      if (_shld1) shld1++;
      boolean _crit1 = f.calcCrit(npc1.getCriticalHit(npc2, null));
      if (_crit1) crit1++;

      double _patk1 = npc1.getPAtk(npc2);
      _patk1 += Rnd.nextDouble()* npc1.getRandomDamage(npc2);
      patk1 += _patk1;
View Full Code Here

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

    {
      boolean _miss2 = f.calcHitMiss(npc2, npc1);
      if (_miss2) miss2++;
      boolean _shld2 = f.calcShldUse(npc2, npc1);
      if (_shld2) shld2++;
      boolean _crit2 = f.calcCrit(npc2.getCriticalHit(npc1, null));
      if (_crit2) crit2++;

      double _patk2 = npc2.getPAtk(npc1);
      _patk2 += Rnd.nextDouble()* npc2.getRandomDamage(npc1);
      patk2 += _patk2;
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.