added support for cantbetargetof(something[optional])
for "this card cant be the target of green spells or abilities" style cards. added poisoned status trigger for attacking, so far its the only place this is checked. we will see what the next set does with this keyword
This commit is contained in:
@@ -728,6 +728,7 @@ bool TargetChooser::canTarget(Targetable * target)
|
||||
{
|
||||
if (card->has(Constants::SHROUD)) return false;
|
||||
if (card->protectedAgainst(targetter)) return false;
|
||||
if (card->CantBeTargetby(targetter)) return false;
|
||||
if ((targetter->controller() != card->controller()) && card->has(Constants::OPPONENTSHROUD)) return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user