• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] Move error

  • 163
    Posts
    6
    Years
    This happened while I was testing Temperature Blast!
    [Pokémon Essentials version 17.2]
    Exception: NoMethodError
    Message: undefined method `pbHasPrimaryType?' for #<PokeBattle_Battler:0xece13d0>
    PokeBattle_MoveEffects:1303:in `pbModifyType'
    PokeBattle_Move:103:in `pbType'
    PokeBattle_Battler:2167:in `pbChangeTarget'
    PokeBattle_Battler:3217:in `pbUseMove'
    PokeBattle_Battler:3214:in `loop'
    PokeBattle_Battler:3237:in `pbUseMove'
    PokeBattle_Battler:3437:in `pbProcessTurn'
    PokeBattle_Battler:3436:in `logonerr'
    PokeBattle_Battler:3436:in `pbProcessTurn'
    PokeBattle_Battle:2829:in `pbAttackPhase'

    Here's the code for Temperature Blast:
    ################################################################################
    # Type changes depending on Thermewt and Thermaguana's form. (Temperature Blast)
    ################################################################################
    class PokeBattle_Move_15B < PokeBattle_Move
    def pbModifyType(type,attacker,opponent)
    type=getConst(PBTypes,:NORMAL) || 0
    if isConst?(@id,PBMoves,:TEMPERATUREBLAST)
    type=(getConst(PBTypes,:FIRE) || 0) if attacker.pbHasPrimaryType?(:FIRE)
    type=(getConst(PBTypes,:ICE) || 0) if attacker.pbHasPrimaryType?(:ICE)
    end
    return type
    end
    end

    What am I doing wrong?! :(
     
    Back
    Top