• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Question] Spite

4
Posts
6
Years
  • Age 31
  • Seen Oct 1, 2017
My game's returning an error when allies and opponents use Spite. The error is pbSetPP is undefined. I haven't really messed around in there... anyone experience this before? Hopefully there's a quick fix.
 
971
Posts
7
Years
  • Age 21
  • Seen Nov 28, 2022
My game's returning an error when allies and opponents use Spite. The error is pbSetPP is undefined. I haven't really messed around in there... anyone experience this before? Hopefully there's a quick fix.

It'd help if you'd show the full error.
 
1,677
Posts
8
Years
  • Age 23
  • Seen yesterday
def pbSetPP is a method on PokeBattle_Battler, not PokeBattle_Move.
It takes the move and the new pp as arguments.
Looking at the line, it looks like it should be
Code:
opponent.pbSetPP(i,i.pp-reduction)
 
Back
Top