Skip to content

Commit

Permalink
[FIX] Status effect skip only apply when trying to remove status
Browse files Browse the repository at this point in the history
  • Loading branch information
Wano-k committed Sep 25, 2023
1 parent 9404dd4 commit 7d0af5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System/Effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class Effect extends Base {
battler = targets[i];
target = battler.player;
id = this.statusID.getValue();
if (!target.hasStatus(id)) {
if (!this.isAddStatus && !target.hasStatus(id)) {
battler.damages = null;
battler.isDamagesMiss = false;
battler.isDamagesCritical = false;
Expand Down

0 comments on commit 7d0af5c

Please sign in to comment.