quick Fix for zerodead
This commit is contained in:
@@ -405,9 +405,7 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
|
|||||||
if(check != string::npos)//returns true if zero
|
if(check != string::npos)//returns true if zero
|
||||||
{
|
{
|
||||||
bool hasDeadCreature = false;
|
bool hasDeadCreature = false;
|
||||||
for(int cp = 0;cp < 2;cp++)
|
Player * checkCurrent = card->controller();
|
||||||
{
|
|
||||||
Player * checkCurrent = observer->players[cp];
|
|
||||||
MTGGameZone * grave = checkCurrent->game->graveyard;
|
MTGGameZone * grave = checkCurrent->game->graveyard;
|
||||||
for(unsigned int gy = 0;gy < grave->cardsSeenThisTurn.size();gy++)
|
for(unsigned int gy = 0;gy < grave->cardsSeenThisTurn.size();gy++)
|
||||||
{
|
{
|
||||||
@@ -423,7 +421,6 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
|
|||||||
if(hasDeadCreature)
|
if(hasDeadCreature)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//Ensnaring Bridge
|
//Ensnaring Bridge
|
||||||
check = restriction[i].find("powermorethanopponenthand");
|
check = restriction[i].find("powermorethanopponenthand");
|
||||||
if (check != string::npos)//for opponent creatures
|
if (check != string::npos)//for opponent creatures
|
||||||
|
|||||||
Reference in New Issue
Block a user