mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-12 11:15:37 -05:00
Fix "maybe trapped" detection for ability bans
This commit is contained in:
@@ -1627,7 +1627,7 @@ class Battle extends Dex.ModdedDex {
|
||||
continue;
|
||||
}
|
||||
let ability = this.getAbility(abilityName);
|
||||
if (ruleTable.has('-' + ability.id)) continue;
|
||||
if (ruleTable.has('-ability:' + ability.id)) continue;
|
||||
if (pokemon.knownType && !this.getImmunity('trapped', pokemon)) continue;
|
||||
this.singleEvent('FoeMaybeTrapPokemon',
|
||||
ability, {}, pokemon, source);
|
||||
|
||||
Reference in New Issue
Block a user