mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
Ability only functions on player side
This commit is contained in:
parent
7db92937a5
commit
d0b3a10357
@ -2283,7 +2283,7 @@ export class FetchBallAbAttr extends PostTurnAbAttr {
|
||||
}
|
||||
applyPostTurn(pokemon: Pokemon, passive: boolean, args: any[]): boolean {
|
||||
let lastUsed = pokemon.scene.currentBattle.lastUsedPokeball;
|
||||
if(lastUsed != null) {
|
||||
if(lastUsed != null && pokemon.isPlayer) {
|
||||
pokemon.scene.pokeballCounts[lastUsed]++;
|
||||
pokemon.scene.currentBattle.lastUsedPokeball = null;
|
||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ` found a\n${getPokeballName(lastUsed)}!`));
|
||||
|
Loading…
Reference in New Issue
Block a user