Forgot to Commit modifyProjectileDamage

This commit is contained in:
Kam committed 2026-02-20 03:50:56 -05:00
1 parent 4bd149c01b
commit a6265d7ba3
1 file changed
+14
@@ -73,4 +73,18 @@ public interface IAbilityExtender {
double knockbackDirX, double knockbackDirZ) {
return false;
}
/**
* Called to modify outgoing projectile damage before it hits a barrier or is used in other contexts.
* Unlike onAbilityDamage (chain of responsibility), this is cumulative — all extenders apply their
* modifications in sequence, each receiving the previous extender's output.
*
* @param ability The source ability of the projectile
* @param caster The entity that fired the projectile
* @param baseDamage The base damage from the ability configuration
* @return The modified damage value
*/
default float modifyProjectileDamage(Ability ability, EntityLivingBase caster, float baseDamage) {
return baseDamage;
}
}