From 502bd280d855a47f33d93f050d5122ddc384e64a Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Wed, 13 Apr 2011 14:17:39 +0000 Subject: [PATCH] "turn:" was off by one --- projects/mtg/src/MTGAbility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index b6d80495e..5a90d3f3c 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -139,7 +139,7 @@ int MTGAbility::parseCastRestrictions(MTGCardInstance * card,Player * player,str size_t start = restriction[i].find(":", check); size_t end = restriction[i].find(" ", check); Turn = atoi(restriction[i].substr(start + 1, end - start - 1).c_str()); - if(game->turn < Turn) + if(game->turn < Turn-1) return 0; } check = restriction[i].find("casted a spell");