The PokéCommunity Forums Marin
Conversation Between Marin and PunkPika2

Conversation Between Marin and PunkPika2
Showing Visitor Messages 1 to 1 of 1
  1. PunkPika2
    June 4th, 2018 11:50 AM
    PunkPika2
    i need help i keep getting this error message... what do i do?

    Script 'PokeBattle_MoveEffects' line 1786: NoMethodError Occured
    undefined method '[]'=for nil:NilClass

    ################################################################################
    # Increases the target's Attack by 2 stages. Confuses the target. (Swagger)
    ################################################################################
    class PokeBattle_Move_041 < PokeBattle_Move
    def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
    if opponent.effects[PBEffects::Substitute]>0 && !ignoresSubstitute?(attacker)
    @battle.pbDisplay(_INTL("{1}'s attack missed!",attacker.pbThis))
    return[-1]

All times are GMT -8. The time now is 4:54 AM.