Thread: [Question] Ability cloning Zen Mode?
View Single Post
  #7    
Old September 28th, 2012 (05:48 AM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
I presume you made a "getForm" procedure for your Pokémon in order to make sure its form changes outside of battle properly (which could happen due to poisoning).

The stats not changing in battle is an oversight on my part. In PokeBattle_Battler, find def pbUpdate and add this:

Code:
  def pbUpdate(fullchange=false)
    if @pokemon
      @pokemon.calcStats
      if fullchange
        @type1=@pokemon.type1
        @type2=@pokemon.type2
Bear in mind that there's a very good reason why, of all the base stats, the HP stat never changes between forms - it would affect the current HP as well, and that's too fiddly to deal with. Make sure any of your Pokémon with multiple forms never change their HP stat.
__________________
Reply With Quote