Fixing problems with empty skirmish side.
This commit is contained in:
@@ -543,7 +543,7 @@ var GameAnimations = Class.extend({
|
|||||||
var cardId = element.getAttribute("cardId");
|
var cardId = element.getAttribute("cardId");
|
||||||
var opposingCardIds = element.getAttribute("otherCardIds");
|
var opposingCardIds = element.getAttribute("otherCardIds");
|
||||||
|
|
||||||
if (opposingCardIds != "")
|
if (opposingCardIds != null && opposingCardIds != "")
|
||||||
$(".card:cardId(" + opposingCardIds + ")").each(function() {
|
$(".card:cardId(" + opposingCardIds + ")").each(function() {
|
||||||
$(this).data("card").skirmish = true;
|
$(this).data("card").skirmish = true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user