modifyIncomingDamage

public double modifyIncomingDamage(Player player, double originalDamage, Object context)

Calculates damage reduction based on player's current health. Called from damage event handler.

Return

The modified damage amount

Parameters

player

The player taking damage

originalDamage

The original damage amount

context

The damage event context