mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
Merge pull request #261 from ascriptmaster/move-fixes
Added some client-side messages to replace placeholder messages
This commit is contained in:
@@ -3854,6 +3854,9 @@ function Battle(frame, logFrame, noPreload) {
|
||||
var poke = this.getPokemon(args[1]);
|
||||
var template = Tools.getTemplate(args[2]);
|
||||
var spriteData = {'shiny': poke.sprite.sp.shiny};
|
||||
if (kwargs.msg) {
|
||||
actions += "" + poke.getName() + " transformed!";
|
||||
}
|
||||
poke.sprite.animTransform($.extend(spriteData, template));
|
||||
poke.addVolatile('formechange'); // the formechange volatile reminds us to revert the sprite change on switch-out
|
||||
poke.volatiles.formechange[2] = template.species;
|
||||
@@ -4441,6 +4444,9 @@ function Battle(frame, logFrame, noPreload) {
|
||||
case 'leppaberry':
|
||||
actions += '' + poke.getName() + " restored " + Tools.escapeHTML(args[3]) + "'s PP using its Leppa Berry!";
|
||||
break;
|
||||
case 'focusband':
|
||||
actions += '' + poke.getName() + " held on using its Focus Band!";
|
||||
break;
|
||||
default:
|
||||
actions += "" + poke.getName() + "'s " + effect.name + " activated!";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user