Previous commit for Classic branch.

This commit is contained in:
MobiusDev 2017-09-13 13:48:50 +00:00
parent 185c73f3e4
commit 39226731ea
5 changed files with 35 additions and 0 deletions

View File

@ -183,6 +183,7 @@ public final class EffectMasterHandler
EffectHandler.getInstance().registerHandler("MagicalDamOverTime", MagicalDamOverTime::new);
EffectHandler.getInstance().registerHandler("MagicalDefence", MagicalDefence::new);
EffectHandler.getInstance().registerHandler("MagicalEvasion", MagicalEvasion::new);
EffectHandler.getInstance().registerHandler("MagicalSkillPower", MagicalSkillPower::new);
EffectHandler.getInstance().registerHandler("MagicalSoulAttack", MagicalSoulAttack::new);
EffectHandler.getInstance().registerHandler("MagicCriticalDamage", MagicCriticalDamage::new);
EffectHandler.getInstance().registerHandler("MagicCriticalRate", MagicCriticalRate::new);

View File

@ -0,0 +1,31 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package handlers.effecthandlers;
import com.l2jmobius.gameserver.model.StatsSet;
import com.l2jmobius.gameserver.model.stats.Stats;
/**
* @author Mobius
*/
public class MagicalSkillPower extends AbstractStatEffect
{
public MagicalSkillPower(StatsSet params)
{
super(params, Stats.MAGICAL_SKILL_POWER);
}
}

View File

@ -151,6 +151,7 @@ MagicalAttackSpeed: Casting Spd. stat
MagicalDamOverTime: Magical attack over time.
MagicalDefence: M. Def stat.
MagicalEvasion: M. Evasion stat.
MagicalSkillPower: Magical Skill Power stat. (l2jmobius)
MagicalSoulAttack: Magical attack based on souls formula.
MagicCriticalDamage: Magical Critical Damage stat
MagicCriticalRate: Magical Critical Rate stat.

View File

@ -204,6 +204,7 @@ public final class Formulas
}
damage = damage * critMod * generalTraitMod * attributeMod * randomMod * pvpPveMod;
damage = attacker.getStat().getValue(Stats.MAGICAL_SKILL_POWER, damage);
return damage;
}

View File

@ -107,6 +107,7 @@ public enum Stats
MAGIC_CRITICAL_DAMAGE("mCritPower"),
PHYSICAL_SKILL_POWER("physicalSkillPower"), // Adding skill power (not multipliers) results in points added directly to final value unmodified by defence, traits, elements, criticals etc.
// Even when damage is 0 due to general trait immune multiplier, added skill power is active and clearly visible (damage not being 0 but at the value of added skill power).
MAGICAL_SKILL_POWER("magicalSkillPower"),
CRITICAL_DAMAGE_SKILL("cAtkSkill"),
CRITICAL_DAMAGE_SKILL_ADD("cAtkSkillAdd"),
MAGIC_CRITICAL_DAMAGE_ADD("mCritPowerAdd"),