• 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.

[Scripting Question] Error with custom gen 7 abilities

11
Posts
7
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:
    11
    Posts
    7
    Years
    • Seen Feb 5, 2017
    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