Merge pull request #223 from Slayer95/swap-position

Fix swap message not being displayed if middle slot is empty
This commit is contained in:
Guangcong Luo
2014-07-17 13:24:08 -05:00

View File

@@ -2074,7 +2074,7 @@ function Battle(frame, logFrame, noPreload) {
if (pokemon.slot === slot) return;
var target = selfS.active[slot];
if (target && !kwargs.silent) {
if (!kwargs.silent) {
var fromeffect = Tools.getEffect(kwargs.from);
switch (fromeffect.id) {
case 'allyswitch':