[Pokémon Essentials version 17.2]
Exception: ArgumentError
Message: wrong number of arguments(0 for 1)
PokeBattle_MoveEffects:1273:in `pbAttract'
PokeBattle_MoveEffects:1273:in `pbAdditionalEffect'
PokeBattle_Battler:2781:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2706:in `each'
PokeBattle_Battler:2706:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3182:in `pbUseMove'
PokeBattle_Battler:3162:in `loop'
PokeBattle_Battler:3185:in `pbUseMove'
PokeBattle_Battler:3385:in `pbProcessTurn'
PokeBattle_Battler:3384:in `logonerr'
It's for a move called Heartstring Tug. It damages the target but also makes them fall in love. But all I get is this error when the effect happens.
Please help! :(
Here's the code for Heartstring Tug's function code BTW:
################################################################################
# May cause the target to become infactuated. (Heartstring Tug)
################################################################################
class PokeBattle_Move_159 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
return super(attacker,opponent,hitnum,alltargets,showanimation) if pbIsDamaging?
if opponent.pbCanAttract?(attacker)
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
opponent.pbAttract
@battle.pbDisplay(_INTL("{1} fell in love!",opponent.pbThis))
return 0
end
return -1
end
def pbAdditionalEffect(attacker,opponent)
return if opponent.damagestate.substitute
if opponent.pbCanAttract?(attacker)
opponent.pbAttract
@battle.pbDisplay(_INTL("{1} fell in love!",opponent.pbThis))
end
end
end
Exception: ArgumentError
Message: wrong number of arguments(0 for 1)
PokeBattle_MoveEffects:1273:in `pbAttract'
PokeBattle_MoveEffects:1273:in `pbAdditionalEffect'
PokeBattle_Battler:2781:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2706:in `each'
PokeBattle_Battler:2706:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3182:in `pbUseMove'
PokeBattle_Battler:3162:in `loop'
PokeBattle_Battler:3185:in `pbUseMove'
PokeBattle_Battler:3385:in `pbProcessTurn'
PokeBattle_Battler:3384:in `logonerr'
It's for a move called Heartstring Tug. It damages the target but also makes them fall in love. But all I get is this error when the effect happens.
Please help! :(
Here's the code for Heartstring Tug's function code BTW:
################################################################################
# May cause the target to become infactuated. (Heartstring Tug)
################################################################################
class PokeBattle_Move_159 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
return super(attacker,opponent,hitnum,alltargets,showanimation) if pbIsDamaging?
if opponent.pbCanAttract?(attacker)
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
opponent.pbAttract
@battle.pbDisplay(_INTL("{1} fell in love!",opponent.pbThis))
return 0
end
return -1
end
def pbAdditionalEffect(attacker,opponent)
return if opponent.damagestate.substitute
if opponent.pbCanAttract?(attacker)
opponent.pbAttract
@battle.pbDisplay(_INTL("{1} fell in love!",opponent.pbThis))
end
end
end