- Added a few simple cards
- a few fixes in Ice Age
- implemented Shroud
This commit is contained in:
wagic.the.homebrew
2008-12-07 07:47:36 +00:00
parent 7f5312be20
commit c4aad7ce4b
5 changed files with 67 additions and 59 deletions
+2 -1
View File
@@ -281,10 +281,11 @@ TargetChooser::TargetChooser(MTGCardInstance * card, int _maxtargets): TargetsLi
}
//Default targetter : every card can be targetted, unless it is protected from the source card
// For spells that do not "target" a specific card, set source to NULL
int TargetChooser::canTarget(Targetable * target){
if (target->typeAsTarget() == TARGET_CARD){
MTGCardInstance * card = (MTGCardInstance *) target;
if (source && card->protectedAgainst(source)) return 0;
if (source && (card->protectedAgainst(source) || card->has(SHROUD))) return 0;
return 1;
}
return 0;