From 6b28709deaf16ac96eb92e18a515e6f8d7834c01 Mon Sep 17 00:00:00 2001 From: Xsear Date: Sun, 11 Feb 2024 20:39:20 +0100 Subject: [PATCH] Revert "Execute apply chain before considering effect applied" This reverts commit c1fdfffac8464ced056a347590e8223563af7e67. --- UdpHosts/GameServer/Systems/Aptitude/AbilitySystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UdpHosts/GameServer/Systems/Aptitude/AbilitySystem.cs b/UdpHosts/GameServer/Systems/Aptitude/AbilitySystem.cs index 28429c89..3a92745c 100644 --- a/UdpHosts/GameServer/Systems/Aptitude/AbilitySystem.cs +++ b/UdpHosts/GameServer/Systems/Aptitude/AbilitySystem.cs @@ -63,8 +63,8 @@ public void DoApplyEffect(uint effectId, IAptitudeTarget target, Context context applyContext.ExecutionHint = ExecutionHint.ApplyEffect; var effect = Factory.LoadEffect(effectId); - effect.ApplyChain?.Execute(applyContext); target.AddEffect(effect, applyContext); + effect.ApplyChain?.Execute(applyContext); foreach (var pair in applyContext.Actives) {