Skip to content

Commit

Permalink
Add mega evolution messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheImmortal committed Nov 23, 2014
1 parent 0db764e commit dc11c21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4049,6 +4049,16 @@ var Battle = (function () {
poke.volatiles.formechange[2] = template.species;
poke.side.updateStatbar();
break;
case '-mega':
var poke = this.getPokemon(args[1]);
var item = Tools.getItem(args[2]);
if (poke.baseSpecies === 'Rayquaza') {
actions += "" + Tools.escapeHTML(poke.side.name) + "'s fervent wish has reached " + poke.getLowerName() + "!";
} else {
actions += "" + poke.getName() + "'s " + item.name + " is reacting to " + Tools.escapeHTML(poke.side.name) + "'s Mega Bracelet!";
}
actions += "<br />" + poke.getName() + " has Mega Evolved into Mega " + poke.baseSpecies + "!";
break;

case '-start':
var poke = this.getPokemon(args[1]);
Expand Down

0 comments on commit dc11c21

Please sign in to comment.