Addition of RearDamage effect.
This commit is contained in:
@@ -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))
|
||||
|
@@ -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"),
|
||||
|
Reference in New Issue
Block a user