# \[UE 5.8.1\]\[GAS\] OverflowEffect triggers on first stack application

**URL:** <https://forums.unrealengine.com/t/ue-5-8-1-gas-overfloweffect-triggers-on-first-stack-application/2739192>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine\
**Created:** [July 29, 2026, 1:10pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-gas-overfloweffect-triggers-on-first-stack-application/2739192 "2026-07-29T13:10:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naru\_Ridan1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naru\_Ridan1](https://forums.unrealengine.com/u/Naru_Ridan1)\
**Post date:** [July 29, 2026, 1:10pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-gas-overfloweffect-triggers-on-first-stack-application/2739192/1 "2026-07-29T13:10:49Z")

</div>

### Summary

A stacking GameplayEffect incorrectly triggers its OverflowEffect on the first application.

### What Type of Bug are you experiencing?

Gameplay Effect

### Steps to Reproduce

Create an Infinite GE with Stack Per Target and StackLimitCount 3.  
Add an OverflowEffect and enable Deny Overflow Application and Clear Stack on Overflow.  
Apply the GE once with StackCount 1 to a target with no existing stack.

### Expected Result

StackCount should become 1. Overflow should only occur when applying beyond 3 stacks.

### Observed Result

The OverflowEffect executes immediately and the stacking GE is rejected.

### Affects Versions

5.8

### Platform(s)

Windows

### Additional Notes

The initial-application branch in FActiveGameplayEffectsContainer::ApplyGameplayEffectSpec() calls HandleActiveGameplayEffectStackOverflow() unconditionally. The handler does not verify whether OldSpec.StackCount + OverflowingSpec.StackCount exceeds the limit.

Reproduced in Standalone with Authority, so replication is not involved.

---

<div class="post-metadata">

**Author:** ![Synthexlol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/synthexlol/32/1196310_2.png) [@Synthexlol](https://forums.unrealengine.com/u/Synthexlol)\
**Post date:** [August 9, 2026, 9:24pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-gas-overfloweffect-triggers-on-first-stack-application/2739192/2 "2026-08-09T21:24:03Z")

</div>

I’ve hit this too and reproduced it in my own project on 5.8.1. My case is the opposite deny setting to the OP’s, so between us both configurations are covered.

**Repro (Deny Overflow Application = false):**

1. GE\_Base: Has Duration, Stack Per Target, Stack Limit Count 5, Overflow Effects = [GE\_Threshold], Deny Overflow Application unchecked.
2. Server-side, apply GE\_Base once to a target with no existing instance: `MakeOutgoingSpec` (StackCount 1, verified) → `ApplyGameplayEffectSpecToTarget`.
3. `showdebug abilitysystem` on the target.

**Expected:** GE\_Base at 1 of 5 stacks, no GE\_Threshold.

**Observed:** GE\_Base lands at 1 stack and GE\_Threshold is applied in the same application. The overflow spec inherits the applier’s context via `InitializeFromLinkedSpec`, so in the debugger it looks like a completely normal application from the instigator.

So: Deny = true → overflow fires and the base’s first application is rejected (OP’s case). Deny = false → overflow fires alongside a successful 1-stack base (mine).

Mine was on a listen server with authority; with the OP’s Standalone repro, replication is ruled out.

**Where it happens in source** (5.8.1 `GameplayEffect.cpp`, screenshots attached):

The initial-application branch of `FActiveGameplayEffectsContainer::ApplyGameplayEffectSpec.`The path that creates a new `FActiveGameplayEffect` when the target has no existing instance, makes a stack-count-0 copy of the spec (~L4356-4358) and calls `HandleActiveGameplayEffectStackOverflow` unconditionally (~L4360). Inside the handler, `bAtStackLimit` and `bRefreshToLimit` are computed (~L3708–3709) but the loop that applies `OverflowEffects` (~L3711–3719) isn’t gated by either, they only affect the return value and the deny/clear handling. So any stackable GE with a populated Overflow Effects array fires them on its very first application, and with Deny set the return value is false at 0 stacks, which is why the base application gets rejected.

 ![GameplayEffect1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/c/cdc144d69ab225ebf532259a67f2cd22d8c9c599.png)

 ![GameplayEffect2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/c/84c023be05daf141179a7c53b89ec88e3457308b.png)

Just guessing here, but this looks like a regression from the fix for [the initial-application stack-limit gap](https://forums.unrealengine.com/t/applying-multiple-stacks-of-a-gameplay-effect-will-only-trigger-the-stack-limit-logic-if-there-was-already-an-existing-applied-effect/2168694). The first-application path now clamps correctly, but fires the overflow loop along with it. Gating the loop on the pre-application count actually being at the limit would restore the old behaviour while keeping the clamp.

The workaround I’ve gone with for now is to just stop using Overflow Effects entirely and apply threshold effects manually after checking `GetCurrentStackCount()`.

---

<div class="post-metadata">

**Author:** ![lolicow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lolicow](https://forums.unrealengine.com/u/lolicow)\
**Post date:** [August 31, 2026, 6:46am UTC](https://forums.unrealengine.com/t/ue-5-8-1-gas-overfloweffect-triggers-on-first-stack-application/2739192/3 "2026-08-31T06:46:46Z")

</div>

Still no fix in 5.8.2
