-Implemented maxSkillDamage stat.

-Done skills Final Ultimate Defense (10017) & Party Rescue (10024) - maxSkillDamage & enchant groups.
-Small fix on Seed Talisman skill (added missing rEvas stat).

Contributed by NviX.
This commit is contained in:
MobiusDev
2015-06-30 19:12:17 +00:00
parent 04d53aedc9
commit 8a2faf6afc
9 changed files with 66 additions and 25 deletions

View File

@ -77,6 +77,13 @@ public final class MagicalAttack extends AbstractEffect
if (damage > 0)
{
// reduce damage if target has maxdamage buff
double maxDamage = (target.getStat().calcStat(Stats.MAX_SKILL_DAMAGE, 0, null, null));
if (maxDamage > 0)
{
damage = (int) maxDamage;
}
// Manage attack or cast break of the target (calculating rate, sending message...)
if (!target.isRaid() && Formulas.calcAtkBreak(target, damage))
{