added casting restriction "casted(TC)" required zone marking either opponentstack or mystack..this is to fix lure of the prey, tho i warn you this card is VERY hard to use cause ai will not just sit there and give you a chance to cast it. it usable tho if you turn on interrupt phases.
This commit is contained in:
@@ -148,6 +148,22 @@ int MTGAbility::parseCastRestrictions(MTGCardInstance * card,Player * player,str
|
||||
if(player->game->stack->seenThisTurn("*", Constants::CAST_ALL) < 1)
|
||||
return 0;
|
||||
}
|
||||
check = restriction[i].find("casted(");
|
||||
if(check != string::npos)
|
||||
{
|
||||
size_t end = restriction[i].find(")",check);
|
||||
string tc = restriction[i].substr(check + 7,end - check - 7);
|
||||
if(tc.find("|mystack") != string::npos)
|
||||
{
|
||||
if(player->game->stack->seenThisTurn(tc, Constants::CAST_ALL) < 1)
|
||||
return 0;
|
||||
}
|
||||
if(tc.find("|opponentstack") != string::npos)
|
||||
{
|
||||
if(player->opponent()->game->stack->seenThisTurn(tc, Constants::CAST_ALL) < 1)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
check = restriction[i].find("one of a kind");
|
||||
if(check != string::npos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user