Castcard, Rebound and other fixes

This commit is contained in:
Anthony Calosa
2015-10-27 19:44:22 +08:00
parent 56fc735b36
commit d2f3e2cd60
5 changed files with 175 additions and 107 deletions

View File

@@ -739,6 +739,10 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
{
return NEW CardTargetChooser(observer, card->storedSourceCard, card, zones, nbzones);
}
else if (typeName.compare("abilitycontroller") == 0)
{
return NEW PlayerTargetChooser(observer, card, 1, card->storedSourceCard->controller());
}
else
{
tc = NEW TypeTargetChooser(observer, typeName.c_str(), zones, nbzones, card, maxtargets, other, targetMin);