Fix Slam with Damage Reduction with Float Ki and Flying

This commit is contained in:
Kam committed 2026-02-24 01:50:23 -05:00
1 parent 5d16e79767
commit efb11dd332
3 files changed
+66 -12

No files matched your search

@@ -184,6 +184,7 @@ public abstract class Ability implements IAbility, IAbilityAction {
// Burst execution state
protected transient int burstIndex = 0;
protected transient List<Entity> burstEntities = new ArrayList<>();
protected transient float damageMultiplier = 1.0f; // Ability-internal damage scaling (e.g., Slam height)
// ═══════════════════════════════════════════════════════════════════
// PREVIEW STATE (client-side only, not saved)
@@ -2081,6 +2082,18 @@ public abstract class Ability implements IAbility, IAbilityAction {
return phase;
}
/**
* Get the damage multiplier applied by the ability itself (e.g. Slam height scaling).
* Extenders should apply this after their own damage calculation.
*/
public float getDamageMultiplier() {
return damageMultiplier;
}
public void setDamageMultiplier(float damageMultiplier) {
this.damageMultiplier = damageMultiplier;
}
/**
* Get the current execution phase as int (0=IDLE, 1=WINDUP, 2=ACTIVE, 3=DAZED).
* Required for IAbility interface.