mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
bahhh
This commit is contained in:
parent
258825a0ad
commit
3b142a07d4
@ -2842,7 +2842,7 @@ export class GrudgeTag extends BattlerTag {
|
||||
if (sourcePokemon.isActive()) {
|
||||
const lastMove = pokemon.turnData.attacksReceived[0];
|
||||
const lastMoveData = sourcePokemon.getMoveset().find(m => m?.moveId === lastMove.move);
|
||||
if (lastMoveData) {
|
||||
if (lastMoveData && lastMove.move !== Moves.STRUGGLE) {
|
||||
lastMoveData.ppUsed = lastMoveData.getMovePp();
|
||||
pokemon.scene.queueMessage(i18next.t("battlerTags:grudgeOnLapse", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), moveName: lastMoveData.getName() }));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user