"turn:" was off by one

This commit is contained in:
omegablast2002@yahoo.com
2011-04-13 14:17:39 +00:00
parent c57795560f
commit 502bd280d8

View File

@@ -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");