• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

[Scripting Question] How to fix the Mimikyu error?

Cardboard Slime

A Slime in a Box
19
Posts
6
Years
So someone made a code for Mimikyu disguise. I implement it but I got this error.

[Pokémon Essentials version 17]
Exception: NoMethodError
Message: undefined method `hasBypassingAbility' for #<PokeBattle_Battler:0xa2eab78>
PokeBattle_Move:1165:in `pbReduceHPDamage'
PokeBattle_Move:1280:in `pbEffect'
PokeBattle_Battler:2744:in `pbProcessMoveAgainstTarget_ebs'
PokeBattle_Battler:2700:in `each'
PokeBattle_Battler:2700:in `pbProcessMoveAgainstTarget_ebs'
EliteBattle_0:475:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3176:in `pbUseMove_ebs'
PokeBattle_Battler:3156:in `loop'
PokeBattle_Battler:3179:in `pbUseMove_ebs'
EliteBattle_0:508:in `pbUseMove'

How to fix it?
Here's the link: https://www.pokecommunity.com/showthread.php?t=393760
(i didn't want to nercopost, so i did a new thread.
 
Last edited by a moderator:

WolfPP

Spriter/ Pixel Artist
1,309
Posts
5
Years
well, i just quote them and got works lol:

Code:
      if opponent.effects[PBEffects::Disguise] #&& !attacker.hasBypassingAbility()
        #@battle.pbDisplayEffect(opponent)
        @battle.pbDisplay(_INTL("Its disguise served it as a decoy!"))
        opponent.effects[PBEffects::Disguise]=false
        opponent.form=1
        opponent.pbCheckForm
        @battle.pbDisplay(_INTL("disguise was busted!"))
        damage=0
      end

i quote ' #&& !attacker.hasBypassingAbility()' and '#@battle.pbDisplayEffect(opponent)'

But my mimikyu doenst changes sprite back in battle :/ could be coz that 'hasBypassingAbility()' make this...

EDIT: my mimikyu and my opponent, do not change sprite form :/ only change in summary screen on the battle.
 
Last edited:
Back
Top