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

[Error] Move error

163
Posts
5
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