Fix Stone Axe failing with max layers

pull/14/head
Flashfyre 2023-12-14 09:16:41 -05:00
parent f47c3e22ce
commit c27db5603a
1 changed files with 1 additions and 1 deletions

View File

@ -2478,7 +2478,7 @@ export class AddArenaTagAttr extends MoveEffectAttr {
export class AddArenaTrapTagAttr extends AddArenaTagAttr {
getCondition(): MoveCondition {
return (user, target, move) => {
if (!user.scene.arena.getTag(this.tagType))
if (move.category !== MoveCategory.STATUS || !user.scene.arena.getTag(this.tagType))
return true;
const tag = user.scene.arena.getTag(this.tagType) as ArenaTrapTag;
return tag.layers < tag.maxLayers;