From a03dd77d0bd9bfa855c424b21960d111d4096c53 Mon Sep 17 00:00:00 2001 From: Kaioru Date: Mon, 8 Jan 2024 23:46:52 +0800 Subject: [PATCH] Add AP checks to UserAbilityUp plugs --- .../Plugs/FieldOnPacketUserAbilityMassUpRequestPlug.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/Edelstein.Common.Gameplay.Game/Handling/Plugs/FieldOnPacketUserAbilityMassUpRequestPlug.cs b/src/common/Edelstein.Common.Gameplay.Game/Handling/Plugs/FieldOnPacketUserAbilityMassUpRequestPlug.cs index 31fe19f77..f7f290d18 100644 --- a/src/common/Edelstein.Common.Gameplay.Game/Handling/Plugs/FieldOnPacketUserAbilityMassUpRequestPlug.cs +++ b/src/common/Edelstein.Common.Gameplay.Game/Handling/Plugs/FieldOnPacketUserAbilityMassUpRequestPlug.cs @@ -34,6 +34,9 @@ public async Task Handle(IPipelineContext ctx, FieldOnPacketUserAbilityMassUpReq public static void HandleStatUp(ModifyStatContext stats, ModifyStatType type, int value = 1) { + if (stats.AP < value) + return; + switch (type) { case ModifyStatType.STR: