Fixed issue with cantbeblockerof and cantbeblockedby vs protection
This commit is contained in:
@@ -1050,7 +1050,7 @@ int MTGCardInstance::cantBeBlockedBy(MTGCardInstance * card)
|
||||
{
|
||||
for (size_t i = 0; i < cantBeBlockedBys.size(); i++)
|
||||
{
|
||||
if (cantBeBlockedBys[i]->canTarget(card))
|
||||
if (cantBeBlockedBys[i]->canTarget(card, true))
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
@@ -1081,7 +1081,7 @@ int MTGCardInstance::cantBeBlockerOf(MTGCardInstance * card)
|
||||
{
|
||||
for (size_t i = 0; i < cantBeBlockerOfs.size(); i++)
|
||||
{
|
||||
if (cantBeBlockerOfs[i]->canTarget(card))
|
||||
if (cantBeBlockerOfs[i]->canTarget(card, true))
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -552,6 +552,10 @@ int TestSuite::loadNext()
|
||||
return loadNext();
|
||||
}
|
||||
|
||||
mProcessing = true;
|
||||
ThreadProc(this);
|
||||
return 0;
|
||||
|
||||
if(!mProcessing)
|
||||
{ // "I don't like to wait" mode
|
||||
mProcessing = true;
|
||||
|
||||
Reference in New Issue
Block a user