- Fixed a bug with sacrifice and shroud
This commit is contained in:
wagic.the.homebrew
2009-03-01 13:14:01 +00:00
parent b780b66653
commit d10f8ddff7
4 changed files with 53 additions and 0 deletions

View File

@@ -15,11 +15,13 @@ int ExtraCost::setSource(MTGCardInstance * _source){
}
SacrificeCost::SacrificeCost(TargetChooser *_tc):ExtraCost(_tc){
if (tc) tc->source = NULL; //Sacrificing is not targetting, protections do not apply
target = NULL;
}
int SacrificeCost::setSource(MTGCardInstance * card){
ExtraCost::setSource(card);
if (tc) tc->source = NULL; //Sacrificing is not targetting, protections do not apply
if (!tc) target = card;
return 1;
}