Merge pull request #55 from V4Victini/unnerve

Fix Unnerve's message
This commit is contained in:
Guangcong Luo
2013-09-28 16:18:28 -07:00

View File

@@ -3532,6 +3532,7 @@ function Battle(frame, logFrame, noPreload) {
var ability = Tools.getAbility(args[2]);
var effect = Tools.getEffect(kwargs.from);
var ofpoke = this.getPokemon(kwargs.of);
var side = this.getSide(args[3]);
poke.ability = ability.name;
if (kwargs.silent) {
@@ -3566,7 +3567,7 @@ function Battle(frame, logFrame, noPreload) {
actions += '' + poke.getName() + ' intimidates ' + ofpoke.getLowerName() + '!';
break;
case 'unnerve':
actions += "" + poke.getName() + "'s Unnerve makes " + args[3] + "'s team too nervous to eat Berries!";
actions += "" + poke.getName() + "'s Unnerve makes " + side.getLowerTeamName() + " too nervous to eat Berries!";
break;
default:
actions += "" + poke.getName() + " has " + ability.name + "!";