Addition of RearDamage effect.

This commit is contained in:
MobiusDev
2017-12-09 18:49:57 +00:00
parent 683ae0ef52
commit 9069b49156
25 changed files with 195 additions and 10 deletions

View File

@@ -4396,8 +4396,11 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
if (!reflect && !isDOT)
{
// TODO: Implement AttackDamagePosition effect
// damage *= getStat().getPositionTypeValue(Stats.ATTACK_DAMAGE, Position.getPosition(this, target));
// RearDamage effect bonus.
if (isBehind(target))
{
damage *= getStat().getValue(Stats.REAR_DAMAGE_RATE, 1);
}
// Counterattacks happen before damage received.
if (!target.isDead() && (skill != null))

View File

@@ -83,6 +83,7 @@ public enum Stats
CRITICAL_DAMAGE("cAtk"),
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
HATE_ATTACK("attackHate"),
REAR_DAMAGE_RATE("rearDamage"),
// PVP BONUS
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),