mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-25 13:38:37 +00:00
nit
This commit is contained in:
parent
20295da912
commit
62865efe8e
@ -4112,10 +4112,7 @@ export class IllusionPreSummonAbAttr extends PreSummonAbAttr {
|
|||||||
applyPreSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean {
|
applyPreSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean {
|
||||||
let suppressed = false;
|
let suppressed = false;
|
||||||
pokemon.scene.getField(true).filter(p => p !== pokemon).map(p => {
|
pokemon.scene.getField(true).filter(p => p !== pokemon).map(p => {
|
||||||
if (p.getAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility()) {
|
if ((p.getAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility()) || (p.getPassiveAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility(true))) {
|
||||||
suppressed = true;
|
|
||||||
}
|
|
||||||
if (p.getPassiveAbility().hasAttr(SuppressFieldAbilitiesAbAttr) && p.canApplyAbility(true)) {
|
|
||||||
suppressed = true;
|
suppressed = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user