modifyIncomingDamage

public double modifyIncomingDamage(Player player, double originalDamage)

Applies the surge's damage reduction to an incoming hit. Called from the armor skill pipeline in PlayerDamagedByEliteMobEvent.applyDefensiveSkillBonuses() so the result is covered by PlayerDamagedByEliteMobEvent.MAX_AGGREGATE_DEFENSIVE_REDUCTION.

Return

The reduced damage, or the original if the surge is not running

Parameters

player

The player taking damage

originalDamage

The damage as it stands at this point in the pipeline