For anyone trying to figure out which codes need to be changed in V19.5, there are actually two that must be removed.
Go into the **Scripts** subfolder of Reborn and open the relevant files using a text editor (Notepad works perfectly fine).
First, open **Battle.rb** and delete this line:
`i.makeUnmega if i.isMega?`
Next, open **Pokemon.rb** and remove the entire following method:
```
def makeUnmega
if !self.originalForm && $Trainer.party.include?(self)
print "this mon's original form was not set, somehow. please report this: species:#{@species} form:#{$cache.pkmn[@species].forms[self.form]} thx <3"
end
self.form = self.originalForm ? self.originalForm : 0
self.ability = self.originalAbility if self.originalAbility
self.originalAbility = nil
self.originalForm = nil
end
```
The quickest way to locate both sections is to search for the term **“unmega”**—they should be the only matches.
Keep in mind, removing just one of them won’t work properly. If both aren’t deleted, the Pokémon will still revert to its base form after battle.
Thanks, flash games