Defer ability set handle assignment until success #
Summary #
When GiveAbilitySet is called multiple times through the same Blueprint event/node, the OutHandle.Abilities array accumulates handles from previous calls instead of being replaced.
This causes ClearAbilitySet to remove abilities from unrelated sets that leaked into the handle.
Fixes GASCompanion/GASCompanion-Documentation#33
Fixed by deferring assignment to a local handle and move it to OutAbilitySetHandle only at the end, so stale handles are never carried over.
@codesmith with what you need.
- [ ] Let Codesmith autofix CI failures and bot reviews