Fixing problems with empty skirmish side.

This commit is contained in:
marcins78@gmail.com
2012-03-07 21:20:53 +00:00
parent 55158931da
commit 5fb6f8cb35

View File

@@ -541,9 +541,9 @@ var GameAnimations = Class.extend({
$("#main").queue(
function(next) {
var cardId = element.getAttribute("cardId");
var opposingCardIds = element.getAttribute("otherCardIds").split(",");
var opposingCardIds = element.getAttribute("otherCardIds");
if (opposingCardIds.length > 0 && opposingCardIds[0] != "")
if (opposingCardIds != "")
$(".card:cardId(" + opposingCardIds + ")").each(function() {
$(this).data("card").skirmish = true;
});