mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Remove promises from abattr function signatures
This commit is contained in:
parent
71b5c02ef7
commit
6b8ed3525c
@ -2216,7 +2216,7 @@ export class PostSummonAddArenaTagAbAttr extends PostSummonAbAttr {
|
||||
this.quiet = quiet;
|
||||
}
|
||||
|
||||
public override applyPostSummon(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
|
||||
public override applyPostSummon(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
|
||||
this.sourceId = pokemon.id;
|
||||
if (!simulated) {
|
||||
globalScene.arena.addTag(this.tagType, this.turnCount, undefined, this.sourceId, this.side, this.quiet);
|
||||
@ -2977,7 +2977,7 @@ export class PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr extends PreLeaveFi
|
||||
super(false);
|
||||
}
|
||||
|
||||
public override applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
|
||||
public override applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
|
||||
if (!simulated) {
|
||||
const suppressTag = globalScene.arena.getTag(ArenaTagType.NEUTRALIZING_GAS) as SuppressAbilitiesTag;
|
||||
if (suppressTag) {
|
||||
|
Loading…
Reference in New Issue
Block a user