mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
Added loadTag functions
This commit is contained in:
parent
f59cd7bf37
commit
1f3e27214a
@ -327,6 +327,11 @@ export class GorillaTacticsTag extends MoveRestrictionBattlerTag {
|
|||||||
pokemon.setStat(Stat.ATK, pokemon.getStat(Stat.ATK, false) * 1.5, false);
|
pokemon.setStat(Stat.ATK, pokemon.getStat(Stat.ATK, false) * 1.5, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override loadTag(source: BattlerTag | any): void {
|
||||||
|
super.loadTag(source);
|
||||||
|
this.moveId = source.moveId;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @override
|
* @override
|
||||||
@ -2499,6 +2504,11 @@ export class TormentTag extends MoveRestrictionBattlerTag {
|
|||||||
pokemon.scene.queueMessage(i18next.t("battlerTags:tormentOnAdd", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }), 1500);
|
pokemon.scene.queueMessage(i18next.t("battlerTags:tormentOnAdd", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }), 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override loadTag(source: BattlerTag | any): void {
|
||||||
|
super.loadTag(source);
|
||||||
|
this.target = source.target.toPokemon();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Torment only ends when the affected Pokemon leaves the battle field
|
* Torment only ends when the affected Pokemon leaves the battle field
|
||||||
* @param {Pokemon} pokemon the Pokemon under the effects of Torment
|
* @param {Pokemon} pokemon the Pokemon under the effects of Torment
|
||||||
@ -2609,6 +2619,11 @@ export class ImprisonTag extends MoveRestrictionBattlerTag {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override loadTag(source: BattlerTag | any): void {
|
||||||
|
super.loadTag(source);
|
||||||
|
this.source = source.source.toPokemon();
|
||||||
|
}
|
||||||
|
|
||||||
override selectionDeniedText(_pokemon: Pokemon, move: Moves): string {
|
override selectionDeniedText(_pokemon: Pokemon, move: Moves): string {
|
||||||
return i18next.t("battle:moveCannotBeSelected", { moveName: allMoves[move].name });
|
return i18next.t("battle:moveCannotBeSelected", { moveName: allMoves[move].name });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user