mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Fix tracing of non-suppressible abilities
This commit is contained in:
parent
973e1e0b96
commit
08c81b7dcb
|
|
@ -1889,9 +1889,6 @@ export class Pokemon {
|
|||
if (typeof ability === 'string') ability = this.battle.dex.abilities.get(ability);
|
||||
if (!sourceEffect && this.battle.effect) sourceEffect = this.battle.effect;
|
||||
const oldAbility = this.battle.dex.abilities.get(this.ability);
|
||||
if (!isFromFormeChange) {
|
||||
if (ability.flags['cantsuppress'] || this.getAbility().flags['cantsuppress']) return false;
|
||||
}
|
||||
if (!isFromFormeChange && !isTransform) {
|
||||
const setAbilityEvent: boolean | null = this.battle.runEvent('SetAbility', this, source, sourceEffect, ability);
|
||||
if (!setAbilityEvent) return setAbilityEvent;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user