[GAS] Self-referencing Attribute Based modifier inflates MaxHealth with Stacking=None

Summary

A duration GameplayEffect with stacking disabled can repeatedly recalculate a live modifier that reads and modifies MaxHealth on the same Ability System Component (ASC). Applying a second instance before the first expires makes the current value grow further. I originally observed this behavior in Unreal Engine 5.5.4.

What Type of Bug are you experiencing?

AI

Steps to Reproduce

  1. Start Play In Editor (PIE) with Net Mode set to Play Standalone. Use an actor with an ASC and an Attribute Set containing MaxHealth. Set its base value to 100 and verify that its current value is also 100. Use no other modifiers or custom clamping on MaxHealth.
  2. Create a GameplayEffect with Duration Policy = Has Duration (30 seconds), Period = 0, and Stacking Type = No Stacking (None).
  3. Add one modifier for MaxHealth with operation Add (Base) and magnitude type Attribute Based. Set Backing Attribute = MaxHealth, Attribute Source = Target, Snapshot = off, Attribute Calculation Type = Attribute Magnitude, Coefficient = 1, and both pre- and post-multiply additions = 0.
  4. Create a fresh spec of this GameplayEffect, apply it to the actor’s own ASC, and record the base and current values of MaxHealth immediately after application.
  5. Before the first effect expires, create and apply a second fresh spec and record both values again. With No Stacking, the two applications create separate active effects.

Expected Result

The engine should detect the live circular dependency and warn about or reject the modifier, or define and document how it handles the dependency. Recalculating the modifier should not repeatedly amplify its own contribution. The sample configuration effectively asks for MaxHealth = 100 + MaxHealth, which has no finite steady state.

Observed Result

In UE 5.5.4, I observed unexpected growth in the current MaxHealth value. Applying the effect again while the first instance was active made the discrepancy larger.

Affects Versions

5.8

Platform(s)

Windows

Additional Notes

My original write-up (Chinese): https://zhuanlan.zhihu.com/p/1934035477515712364

Related Epic issue: https://issues.unrealengine.com/issue/UE-209218

UE-209218 documents a self-referencing MaxHealth modifier in a stack-enabled GameplayEffect where the client and server report different values. This report covers Stacking=None. The behavior can be examined on a single authoritative ASC in standalone PIE, without a client/server comparison. Could you confirm whether this case is covered by UE-209218 or should be tracked separately?

Source inspection of a UE 5.8.0 tree shows a feedback path through RegisterLinkedAggregatorCallbacks(), FAggregator::BroadcastOnDirty(), and OnMagnitudeDependencyChange(). Recalculating the modifier writes to the same aggregator that triggered the callback. For the isolated setup above, tracing the callback order yields a current value of 300 after the first application and 2800 after the second. These are source-derived values and have not been verified in a UE 5.8.0 runtime.