From 5d837c2feb9b0df8ac96b78b637e7ccda3c6741d Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 13 Oct 2011 10:49:04 +0000 Subject: [PATCH] Turning off animation for new cards in discard, dead pile and hand zones. --- gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js index b7b53aa94..dbb64e098 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameAnimations.js @@ -146,12 +146,12 @@ var GameAnimations = Class.extend({ putCardInPlay: function(element, animate) { var participantId = element.getAttribute("participantId"); var cardId = element.getAttribute("cardId"); + var zone = element.getAttribute("zone"); var that = this; $("#main").queue( function(next) { var blueprintId = element.getAttribute("blueprintId"); - var zone = element.getAttribute("zone"); var targetCardId = element.getAttribute("targetCardId"); var controllerId = element.getAttribute("controllerId"); @@ -180,7 +180,8 @@ var GameAnimations = Class.extend({ next(); }); - if (animate && (this.game.spectatorMode || (participantId != this.game.bottomPlayerId))) { + if (animate && (this.game.spectatorMode || (participantId != this.game.bottomPlayerId)) + && zone != "DISCARD" && zone != "DEAD" && zone != "HAND") { $("#main").queue( function(next) { that.game.layoutUI(false);