• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Error] Trainer partner pokémon switching error

  • 1
    Posts
    6
    Years
    • Seen Dec 24, 2018
    So I have this problem when I have a trainer as a partner for double battles. When the trainer's pokémon faints, instead of sending out another pokémon it shows the following error.
    ---------------------------
    Exception: NoMethodError

    Message: undefined method `ability' for nil:NilClass

    PokeBattle_Battle:1551:in `pbSwitch'

    PokeBattle_Battle:1544:in `each'

    PokeBattle_Battle:1544:in `pbSwitch'

    PokeBattle_Battle:4117:in `__clauses__pbEndOfRoundPhase'

    PokeBattle_Clauses:42:in `pbEndOfRoundPhase'

    PokeBattle_DynamicBattle:202:in `pbStartBattleCore'

    PokeBattle_DynamicBattle:201:in `logonerr'

    PokeBattle_DynamicBattle:201:in `pbStartBattleCore'

    PokeBattle_DynamicBattle:185:in `loop'

    PokeBattle_DynamicBattle:206:in `pbStartBattleCore'

    That happens always at the end of each turn after the ally trainer's pokémon faints.
     
    Back
    Top