• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] Error with custom gen 7 abilities

  • 11
    Posts
    8
    Years
    • Seen Feb 5, 2017
    So, I used Wishiwashi's Brine or Braixen's Fire Spin and for some reason, this error code appeared and kept repeating the move until all its PP was gone:
    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: NoMethodError
    
    Message: undefined method `hasWorkingAbility' for 0:Fixnum
    
    PokeBattle_Move:309:in `pbTypeImmunityByAbility_ebs'
    
    EliteBattle_Battle:632:in `pbTypeImmunityByAbility'
    
    PokeBattle_Move:445:in `pbTypeModMessages'
    
    PokeBattle_Move:1054:in `pbCalcDamage'
    
    PokeBattle_Move:1285:in `pbEffect'
    
    PokeBattle_Battler:2762:in `pbProcessMoveAgainstTarget_ebs'
    
    PokeBattle_Battler:2718:in `each'
    
    PokeBattle_Battler:2718:in `pbProcessMoveAgainstTarget_ebs'
    
    EliteBattle_Battle:527:in `pbProcessMoveAgainstTarget'
    
    PokeBattle_Battler:3208:in `pbUseMove_ebs'
    ---------------------------
    OK   
    ---------------------------
     
    Last edited by a moderator:
    PokeBatlle_Move line 309 does not have an instance of "hasWorkingAbility". Is that the section about the ability Motor Drive?

    Yes, it is, but now that you mention that, I realized I placed Stamina and Water Compaction in its place, which could be the problem.
     
    Back
    Top