Fixed issue with cantbeblockerof and cantbeblockedby vs protection

This commit is contained in:
pankdm
2013-10-01 14:47:39 +00:00
parent 490752e9da
commit be76c8a4f1
6 changed files with 59 additions and 12 deletions
+2 -2
View File
@@ -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;
+4
View File
@@ -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;