mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Update PostSummonAddArenaTagAbAttr
This commit is contained in:
parent
7e49304d0c
commit
41536b7ee1
@ -2250,20 +2250,19 @@ export class PostSummonAddArenaTagAbAttr extends PostSummonAbAttr {
|
|||||||
private sourceId: number;
|
private sourceId: number;
|
||||||
|
|
||||||
|
|
||||||
constructor(tagType: ArenaTagType, turnCount: number, side?: ArenaTagSide, quiet?: boolean) {
|
constructor(showAbility: boolean, tagType: ArenaTagType, turnCount: number, side?: ArenaTagSide, quiet?: boolean) {
|
||||||
super(false);
|
super(showAbility);
|
||||||
this.tagType = tagType;
|
this.tagType = tagType;
|
||||||
this.turnCount = turnCount;
|
this.turnCount = turnCount;
|
||||||
this.side = side;
|
this.side = side;
|
||||||
this.quiet = quiet;
|
this.quiet = quiet;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override applyPostSummon(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
|
public override applyPostSummon(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): void {
|
||||||
this.sourceId = pokemon.id;
|
this.sourceId = pokemon.id;
|
||||||
if (!simulated) {
|
if (!simulated) {
|
||||||
globalScene.arena.addTag(this.tagType, this.turnCount, undefined, this.sourceId, this.side, this.quiet);
|
globalScene.arena.addTag(this.tagType, this.turnCount, undefined, this.sourceId, this.side, this.quiet);
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6907,7 +6906,7 @@ export function initAbilities() {
|
|||||||
new Ability(Abilities.GORILLA_TACTICS, 8)
|
new Ability(Abilities.GORILLA_TACTICS, 8)
|
||||||
.attr(GorillaTacticsAbAttr),
|
.attr(GorillaTacticsAbAttr),
|
||||||
new Ability(Abilities.NEUTRALIZING_GAS, 8)
|
new Ability(Abilities.NEUTRALIZING_GAS, 8)
|
||||||
.attr(PostSummonAddArenaTagAbAttr, ArenaTagType.NEUTRALIZING_GAS, 0)
|
.attr(PostSummonAddArenaTagAbAttr, true, ArenaTagType.NEUTRALIZING_GAS, 0)
|
||||||
.attr(PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr)
|
.attr(PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr)
|
||||||
.attr(UncopiableAbilityAbAttr)
|
.attr(UncopiableAbilityAbAttr)
|
||||||
.attr(UnswappableAbilityAbAttr)
|
.attr(UnswappableAbilityAbAttr)
|
||||||
|
Loading…
Reference in New Issue
Block a user