protection from colored spells
This commit is contained in:
@@ -859,6 +859,11 @@ bool TargetChooser::canTarget(Targetable * target, bool withoutProtections)
|
||||
if (card->protectedAgainst(targetter)) return targetter->bypassTC;
|
||||
if (card->CantBeTargetby(targetter)) return targetter->bypassTC;
|
||||
if ((targetter->controller() != card->controller()) && card->has(Constants::OPPONENTSHROUD)) return targetter->bypassTC;
|
||||
if (card->has(Constants::PROTECTIONFROMCOLOREDSPELLS))
|
||||
{//a spell that has no target=criteria means it's not targetted unless its a workaround card...
|
||||
if((targetter->spellTargetType.size()) && (targetter->hasColor(1)||targetter->hasColor(2)||targetter->hasColor(3)||targetter->hasColor(4)||targetter->hasColor(5)))
|
||||
return targetter->bypassTC;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user