Fixing problems with empty skirmish side.

This commit is contained in:
marcins78@gmail.com
2012-03-07 21:21:16 +00:00
parent 5fb6f8cb35
commit 687f4a1bcd

View File

@@ -543,7 +543,7 @@ var GameAnimations = Class.extend({
var cardId = element.getAttribute("cardId");
var opposingCardIds = element.getAttribute("otherCardIds");
if (opposingCardIds != "")
if (opposingCardIds != null && opposingCardIds != "")
$(".card:cardId(" + opposingCardIds + ")").each(function() {
$(this).data("card").skirmish = true;
});