Fix Stone Axe failing with max layers
parent
f47c3e22ce
commit
c27db5603a
|
@ -2478,7 +2478,7 @@ export class AddArenaTagAttr extends MoveEffectAttr {
|
||||||
export class AddArenaTrapTagAttr extends AddArenaTagAttr {
|
export class AddArenaTrapTagAttr extends AddArenaTagAttr {
|
||||||
getCondition(): MoveCondition {
|
getCondition(): MoveCondition {
|
||||||
return (user, target, move) => {
|
return (user, target, move) => {
|
||||||
if (!user.scene.arena.getTag(this.tagType))
|
if (move.category !== MoveCategory.STATUS || !user.scene.arena.getTag(this.tagType))
|
||||||
return true;
|
return true;
|
||||||
const tag = user.scene.arena.getTag(this.tagType) as ArenaTrapTag;
|
const tag = user.scene.arena.getTag(this.tagType) as ArenaTrapTag;
|
||||||
return tag.layers < tag.maxLayers;
|
return tag.layers < tag.maxLayers;
|
||||||
|
|
Loading…
Reference in New Issue