mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +02:00
fix nits
This commit is contained in:
parent
c3bbef892c
commit
fc7020f655
@ -1998,16 +1998,24 @@ export class TarShotTag extends BattlerTag {
|
|||||||
* @param pokemon the pokemon to which the tag is added
|
* @param pokemon the pokemon to which the tag is added
|
||||||
* @returns whether the tag is applied
|
* @returns whether the tag is applied
|
||||||
*/
|
*/
|
||||||
canAdd(pokemon: Pokemon): boolean {
|
override canAdd(pokemon: Pokemon): boolean {
|
||||||
return !pokemon.isTerastallized();
|
return !pokemon.isTerastallized();
|
||||||
}
|
}
|
||||||
|
|
||||||
onAdd(pokemon: Pokemon): void {
|
override onAdd(pokemon: Pokemon): void {
|
||||||
pokemon.scene.queueMessage(i18next.t("battlerTags:tarShotOnAdd", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }));
|
pokemon.scene.queueMessage(i18next.t("battlerTags:tarShotOnAdd", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves a BattlerTag based on the provided tag type, turn count, source move, and source ID.
|
||||||
|
*
|
||||||
|
* @param {BattlerTagType} tagType - The type of the BattlerTag.
|
||||||
|
* @param {number} turnCount - The turn count.
|
||||||
|
* @param {Moves} sourceMove - The source move.
|
||||||
|
* @param {number} sourceId - The source ID.
|
||||||
|
* @returns {BattlerTag} The corresponding BattlerTag object.
|
||||||
|
*/
|
||||||
export function getBattlerTag(tagType: BattlerTagType, turnCount: number, sourceMove: Moves, sourceId: number): BattlerTag {
|
export function getBattlerTag(tagType: BattlerTagType, turnCount: number, sourceMove: Moves, sourceId: number): BattlerTag {
|
||||||
switch (tagType) {
|
switch (tagType) {
|
||||||
case BattlerTagType.RECHARGING:
|
case BattlerTagType.RECHARGING:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { BattlerIndex } from "#app/battle.js";
|
import { BattlerIndex } from "#app/battle";
|
||||||
import { Type } from "#app/data/type.js";
|
import { Type } from "#app/data/type";
|
||||||
import { Moves } from "#app/enums/moves.js";
|
import { Moves } from "#app/enums/moves";
|
||||||
import { Species } from "#app/enums/species.js";
|
import { Species } from "#app/enums/species";
|
||||||
import { Stat } from "#app/enums/stat.js";
|
import { Stat } from "#app/enums/stat";
|
||||||
import { Abilities } from "#enums/abilities";
|
import { Abilities } from "#enums/abilities";
|
||||||
import GameManager from "#test/utils/gameManager";
|
import GameManager from "#test/utils/gameManager";
|
||||||
import { SPLASH_ONLY } from "#test/utils/testUtils";
|
import { SPLASH_ONLY } from "#test/utils/testUtils";
|
||||||
|
Loading…
Reference in New Issue
Block a user