L2JMobius

C6 Support for blowDmg stat

G-hamsteR · 1 · 5948

Online G-hamsteR

  • Viscount
  • *****
    • Posts: 335
Hello,

I wanted to increase the dagger's blow damage with skills, items etc, so I created a new stat called blowDmg. It only affects damage done by BLOW skills.

gameserver/model/skills/Stat.java, line 62:

After:
Code: [Select]
BLOW_RATE("blowRate"),
Add:
Code: [Select]
BLOW_DAMAGE("blowDmg"),
gameserver/model/skills/Formulas.java, line 1300:

After:
Code: [Select]
// possible skill power critical hit, based on Official Description:
if (calcCrit(skill.getBaseCritRate() * 10 * BaseStat.DEX.calcBonus(attacker)))
{
damage *= 2;
}

Add:
Code: [Select]
damage = attacker.calcStat(Stat.BLOW_DAMAGE, damage, target, null);
You can use it like any other stat. For example <mul val="2" order="0x30" stat="blowDmg"/> doubles the damage caused by Blow skills.