Turning off animation for new cards in discard, dead pile and hand zones.
This commit is contained in:
@@ -146,12 +146,12 @@ var GameAnimations = Class.extend({
|
|||||||
putCardInPlay: function(element, animate) {
|
putCardInPlay: function(element, animate) {
|
||||||
var participantId = element.getAttribute("participantId");
|
var participantId = element.getAttribute("participantId");
|
||||||
var cardId = element.getAttribute("cardId");
|
var cardId = element.getAttribute("cardId");
|
||||||
|
var zone = element.getAttribute("zone");
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
$("#main").queue(
|
$("#main").queue(
|
||||||
function(next) {
|
function(next) {
|
||||||
var blueprintId = element.getAttribute("blueprintId");
|
var blueprintId = element.getAttribute("blueprintId");
|
||||||
var zone = element.getAttribute("zone");
|
|
||||||
var targetCardId = element.getAttribute("targetCardId");
|
var targetCardId = element.getAttribute("targetCardId");
|
||||||
var controllerId = element.getAttribute("controllerId");
|
var controllerId = element.getAttribute("controllerId");
|
||||||
|
|
||||||
@@ -180,7 +180,8 @@ var GameAnimations = Class.extend({
|
|||||||
next();
|
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(
|
$("#main").queue(
|
||||||
function(next) {
|
function(next) {
|
||||||
that.game.layoutUI(false);
|
that.game.layoutUI(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user