Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: data/scripts/handlers/admincommandhandlers/AdminFightCalculator.java
- ===================================================================
- --- data/scripts/handlers/admincommandhandlers/AdminFightCalculator.java (revision 8048)
- +++ data/scripts/handlers/admincommandhandlers/AdminFightCalculator.java (working copy)
- @@ -268,7 +268,7 @@
- byte _shld1 = Formulas.calcShldUse(npc1, npc2, null, false);
- if (_shld1 > 0)
- shld1++;
- - boolean _crit1 = Formulas.calcCrit(npc1.getCriticalHit(npc2, null), npc2);
- + boolean _crit1 = Formulas.calcCrit(npc1.getCriticalHit(npc2, null), false, npc2);
- if (_crit1)
- crit1++;
- @@ -296,7 +296,7 @@
- byte _shld2 = Formulas.calcShldUse(npc2, npc1, null, false);
- if (_shld2 > 0)
- shld2++;
- - boolean _crit2 = Formulas.calcCrit(npc2.getCriticalHit(npc1, null), npc1);
- + boolean _crit2 = Formulas.calcCrit(npc2.getCriticalHit(npc1, null), false, npc1);
- if (_crit2)
- crit2++;
- Index: data/scripts/handlers/skillhandlers/Blow.java
- ===================================================================
- --- data/scripts/handlers/skillhandlers/Blow.java (revision 8048)
- +++ data/scripts/handlers/skillhandlers/Blow.java (working copy)
- @@ -128,7 +128,7 @@
- }
- // Crit rate base crit rate for skill, modified with STR bonus
- - if (Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), target))
- + if (Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), true, target))
- damage *= 2;
- if (soul)
- Index: data/scripts/handlers/skillhandlers/Pdam.java
- ===================================================================
- --- data/scripts/handlers/skillhandlers/Pdam.java (revision 8048)
- +++ data/scripts/handlers/skillhandlers/Pdam.java (working copy)
- @@ -99,7 +99,7 @@
- // 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 = Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), target);
- + crit = Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), true, target);
- if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0)
- Index: data/scripts/handlers/skillhandlers/StrSiegeAssault.java
- ===================================================================
- --- data/scripts/handlers/skillhandlers/StrSiegeAssault.java (revision 8048)
- +++ data/scripts/handlers/skillhandlers/StrSiegeAssault.java (working copy)
- @@ -91,7 +91,7 @@
- boolean dual = activeChar.isUsingDualWeapon();
- byte shld = Formulas.calcShldUse(activeChar, target, skill);
- - boolean crit = Formulas.calcCrit(activeChar.getCriticalHit(target, skill), target);
- + boolean crit = Formulas.calcCrit(activeChar.getCriticalHit(target, skill), true, target);
- boolean soul = (weapon != null && weapon.getChargedSoulshot() == L2ItemInstance.CHARGED_SOULSHOT && weapon.getItemType() != L2WeaponType.DAGGER);
- if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement