Fixed probable wrong EnergyAttack effect handler defense calculation.
Contributed by facab.
This commit is contained in:
parent
e60a34f37b
commit
140aaf00df
@ -137,12 +137,16 @@ public final class EnergyAttack extends AbstractEffect
|
||||
attack *= energyChargesBoost;
|
||||
attack *= weaponTypeBoost;
|
||||
|
||||
if (target instanceof L2PcInstance)
|
||||
{
|
||||
defence *= target.getStat().calcStat(Stats.PVP_PHYS_SKILL_DEF, 1.0);
|
||||
}
|
||||
|
||||
damage = attack / defence;
|
||||
damage *= damageMultiplier;
|
||||
if (target instanceof L2PcInstance)
|
||||
{
|
||||
damage *= attacker.getStat().calcStat(Stats.PVP_PHYS_SKILL_DMG, 1.0);
|
||||
damage *= target.getStat().calcStat(Stats.PVP_PHYS_SKILL_DEF, 1.0);
|
||||
damage = attacker.getStat().calcStat(Stats.PHYSICAL_SKILL_POWER, damage);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user