Advertisement
Nik

DP Part for Core [4658]

Nik
Jun 7th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.12 KB | None | 0 0
  1. Index: data/scripts/handlers/admincommandhandlers/AdminFightCalculator.java
  2. ===================================================================
  3. --- data/scripts/handlers/admincommandhandlers/AdminFightCalculator.java    (revision 8048)
  4. +++ data/scripts/handlers/admincommandhandlers/AdminFightCalculator.java    (working copy)
  5. @@ -268,7 +268,7 @@
  6.             byte _shld1 = Formulas.calcShldUse(npc1, npc2, null, false);
  7.             if (_shld1 > 0)
  8.                 shld1++;
  9. -           boolean _crit1 = Formulas.calcCrit(npc1.getCriticalHit(npc2, null), npc2);
  10. +           boolean _crit1 = Formulas.calcCrit(npc1.getCriticalHit(npc2, null), false, npc2);
  11.             if (_crit1)
  12.                 crit1++;
  13.            
  14. @@ -296,7 +296,7 @@
  15.             byte _shld2 = Formulas.calcShldUse(npc2, npc1, null, false);
  16.             if (_shld2 > 0)
  17.                 shld2++;
  18. -           boolean _crit2 = Formulas.calcCrit(npc2.getCriticalHit(npc1, null), npc1);
  19. +           boolean _crit2 = Formulas.calcCrit(npc2.getCriticalHit(npc1, null), false, npc1);
  20.             if (_crit2)
  21.                 crit2++;
  22.            
  23. Index: data/scripts/handlers/skillhandlers/Blow.java
  24. ===================================================================
  25. --- data/scripts/handlers/skillhandlers/Blow.java   (revision 8048)
  26. +++ data/scripts/handlers/skillhandlers/Blow.java   (working copy)
  27. @@ -128,7 +128,7 @@
  28.                 }
  29.                
  30.                 // Crit rate base crit rate for skill, modified with STR bonus
  31. -               if (Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), target))
  32. +               if (Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), true, target))
  33.                     damage *= 2;
  34.                
  35.                 if (soul)
  36. Index: data/scripts/handlers/skillhandlers/Pdam.java
  37. ===================================================================
  38. --- data/scripts/handlers/skillhandlers/Pdam.java   (revision 8048)
  39. +++ data/scripts/handlers/skillhandlers/Pdam.java   (working copy)
  40. @@ -99,7 +99,7 @@
  41.             // PDAM critical chance not affected by buffs, only by STR. Only some skills are meant to crit.
  42.             boolean crit = false;
  43.             if (skill.getBaseCritRate() > 0)
  44. -               crit = Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), target);
  45. +               crit = Formulas.calcCrit(skill.getBaseCritRate() * 10 * BaseStats.STR.calcBonus(activeChar), true, target);
  46.            
  47.            
  48.             if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0)
  49. Index: data/scripts/handlers/skillhandlers/StrSiegeAssault.java
  50. ===================================================================
  51. --- data/scripts/handlers/skillhandlers/StrSiegeAssault.java    (revision 8048)
  52. +++ data/scripts/handlers/skillhandlers/StrSiegeAssault.java    (working copy)
  53. @@ -91,7 +91,7 @@
  54.                
  55.                 boolean dual = activeChar.isUsingDualWeapon();
  56.                 byte shld = Formulas.calcShldUse(activeChar, target, skill);
  57. -               boolean crit = Formulas.calcCrit(activeChar.getCriticalHit(target, skill), target);
  58. +               boolean crit = Formulas.calcCrit(activeChar.getCriticalHit(target, skill), true, target);
  59.                 boolean soul = (weapon != null && weapon.getChargedSoulshot() == L2ItemInstance.CHARGED_SOULSHOT && weapon.getItemType() != L2WeaponType.DAGGER);
  60.                
  61.                 if (!crit && (skill.getCondition() & L2Skill.COND_CRIT) != 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement