Skip to content

Commit

Permalink
Add AP checks to UserAbilityUp plugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Jan 8, 2024
1 parent 7406a1e commit a03dd77
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a03dd77

Please sign in to comment.