From 7a14a8f547a034d5bef373615fdb60d5083abcd0 Mon Sep 17 00:00:00 2001 From: Quite Quiet Date: Wed, 2 Mar 2016 10:42:09 +0100 Subject: [PATCH] Notify client when a move is a spread move --- data/scripts.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/scripts.js b/data/scripts.js index 5992f72f9d..e26be20c32 100644 --- a/data/scripts.js +++ b/data/scripts.js @@ -140,7 +140,10 @@ exports.BattleScripts = { this.add('-notarget'); return true; } - if (targets.length > 1) move.spreadHit = true; + if (targets.length > 1) { + this.attrLastMove('[spread]'); + move.spreadHit = true; + } damage = 0; for (let i = 0; i < targets.length; i++) { let hitResult = this.tryMoveHit(targets[i], pokemon, move, true);