-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:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user