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:
omegablast2002@yahoo.com
2011-01-28 19:08:01 +00:00
parent 6af545a797
commit 7dfa655323
5 changed files with 108 additions and 3 deletions

View File

@@ -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;