mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-07 07:59:26 +02:00
ddddd
This commit is contained in:
parent
a1c718322f
commit
c36394b781
@ -926,6 +926,10 @@ class ToxicSpikesTag extends ArenaTrapTag {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (simulated) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// poison types will neutralize toxic spikes
|
||||
if (pokemon.isOfType(PokemonType.POISON)) {
|
||||
this.#neutralized = true;
|
||||
@ -944,6 +948,7 @@ class ToxicSpikesTag extends ArenaTrapTag {
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO: pass quiet to the function
|
||||
return pokemon.trySetStatus(
|
||||
this.layers === 1 ? StatusEffect.POISON : StatusEffect.TOXIC,
|
||||
null,
|
||||
|
Loading…
Reference in New Issue
Block a user