WCGASResistanceSubsystem is a Game Instance Subsystem that serves as the central coordinator for the immunity and resistance system in the Wonderscape GAS Ally plugin. It automatically manages per-actor immunity GameplayEffects based on each actor's UWCGASResistanceComponent configuration, maintains isolated immunity states with unique FActiveGameplayEffectHandle per actor, handles dynamic immunity tag changes through GE refresh cycles (remove + reapply), integrates with the Diminishing Returns system to track effect applications and enforce DR-based immunity, and provides delegate bindings to ASC effect application events for automatic DR history recording.
The Resistance Subsystem orchestrates all immunity and resistance behavior by providing:
FActiveGameplayEffectHandle, ensuring immunity configuration affects only incoming effects to that specific actorLastAppliedTags and only refreshes GE when tags actually differOnGameplayEffectAppliedDelegateToSelf to record effect applications in the component's DR historyShouldBlockEffectByDR() for external systems to check if an effect should be blocked based on accumulated DR stacksSetImmunityEffectClass()FindResistanceComponentForASC() lookupRegisteredComponents, ImmunityStates, and EffectAppliedDelegateHandles mapsBeginPlay