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?! :(
[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?! :(