• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Selene, Mint, Solana - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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 using Bug Bite [SOLVED]

ptisnjunk95

Made in Portugal
  • 116
    Posts
    12
    Years
    Hey guys,

    So I was testing a battle to check Mega Evolution and I got an error when the NPC used Bug Bite on Mega Venusaur:

    Spoiler:


    The Game didn't crash, instead the Bug Bite hitted more 6 times, showing this error after the move hit Mega Venusaur, then it stopped using the Move. At first I thought it was happening because it was Mega Evolved and had the Mega Stone attached. So I repeated the battle with a Croconaw with no Items attached, and the error continued.

    Has someone faced the same issue and know how to fix it?


    I'm using Essentials v16.1 with Elite Battle and Project Generation 6 implemented.

    Thanks in advance,


    EDIT: A friend of mine (Adre76, Reddit user if you want thank him there xD ) solved the problem. It appears that the class PokeBattle_Move_0F4 < PokeBattle_Move (line 6820) in the PokeBattle_MoveEffects is not good implemented. So you should change that class (lines 6820 - 6853) into this:

    Code:
    class PokeBattle_Move_0F4 < PokeBattle_Move
      def pbEffectAfterHit(attacker,opponent,turneffects)
        if !attacker.isFainted? && !opponent.isFainted? && pbIsBerry?(opponent.item) &&
           opponent.damagestate.calcdamage>0 && !opponent.damagestate.substitute
          if !opponent.hasWorkingAbility(:STICKYHOLD)
            item=opponent.item
            itemname=PBItems.getName(item)
            opponent.pbConsumeItem(false,false)
            @battle.pbDisplay(_INTL("{1} stole and ate its target's {2}!",attacker.pbThis,itemname))
            if !attacker.hasWorkingAbility(:KLUTZ) &&
               attacker.effects[PBEffects::Embargo]==0
              attacker.pbActivateBerryEffect(item,false)
            end
            # Symbiosis
            if attacker.item==0 &&
               attacker.pbPartner && attacker.pbPartner.hasWorkingAbility(:SYMBIOSIS)
              partner=attacker.pbPartner
              if partner.item>0 &&
                 [email protected](partner,partner.item) &&
                 [email protected](attacker,partner.item)
                @battle.pbDisplay(_INTL("{1}'s {2} let it share its {3} with {4}!",
                   partner.pbThis,PBAbilities.getName(partner.ability),
                   PBItems.getName(partner.item),attacker.pbThis(true)))
                attacker.item=partner.item
                partner.item=0
                partner.effects[PBEffects::Unburden]=true
                attacker.pbBerryCureCheck
              end
            end
          end
        end
        return 0
      end
    end
     
    Last edited:
    Back
    Top