mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 11:59:26 +00:00
Fix Slam with Damage Reduction with Float Ki and Flying
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user