Advertiser Content

Error Move error

Started by clawort June 16th, 2019 5:11 PM
  • 1063 views
  • 1 replies

clawort

Male
Australia
Seen June 16th, 2019
Posted June 16th, 2019
82 posts
202 Days
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?! :(
Advertiser Content