• 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?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.

Allow a trainer to use more than 1 mega-evolution in a battle

  • 67
    Posts
    12
    Years
    • Seen Aug 22, 2024
    How can I manage it, that the enemy can use more than 1 (6) mega-evolution in battle?
     
    In PokeBattle_Battle, find this:
    Code:
      def pbCanMegaEvolve?(index)
        return false if $game_switches[NO_MEGA_EVOLUTION]
        return false if @battlers[index].isMega?
        return false if @battlers[index].isShadow?
        return false if pbBelongsToPlayer?(index) && !$PokemonGlobal.megaRing
        return false if !@battlers[index].hasMega?
        side=(pbIsOpposing?(index)) ? 1 : 0
        owner=pbGetOwnerIndex(index)
        return false if @megaEvolution[side][owner]!=-1 [COLOR="Red"]&& !pbIsOpposing?(index)[/COLOR]
        return true
      end

    Add the red stuff. The player and any allies will still be limited to one ME per battle, but the enemy won't be.

    EDIT: Oops, I thought you wanted everyone to be able to use it.
     
    Back
    Top