mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
yattt
This commit is contained in:
parent
8943e92f03
commit
afb5c8fa6b
@ -2851,7 +2851,7 @@ export class GrudgeTag extends BattlerTag {
|
||||
*/
|
||||
override lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType, sourcePokemon?: Pokemon): boolean {
|
||||
if (lapseType === BattlerTagLapseType.CUSTOM && sourcePokemon) {
|
||||
if (sourcePokemon.isActive() && pokemon.getOpponents().includes(sourcePokemon)) {
|
||||
if (sourcePokemon.isActive() && pokemon.isOpponent(sourcePokemon)) {
|
||||
const lastMove = pokemon.turnData.attacksReceived[0];
|
||||
const lastMoveData = sourcePokemon.getMoveset().find(m => m?.moveId === lastMove.move);
|
||||
if (lastMoveData && lastMove.move !== Moves.STRUGGLE) {
|
||||
|
Loading…
Reference in New Issue
Block a user