if we have no target we are milling the sources controller in mill cost.

This commit is contained in:
omegablast2002@yahoo.com
2012-01-11 17:20:55 +00:00
parent 34806848f4
commit f388414f3f

View File

@@ -302,7 +302,7 @@ MillCost::MillCost(TargetChooser *_tc)
int MillCost::canPay()
{
MTGGameZone * z = target->controller()->game->library;
MTGGameZone * z = target?target->controller()->game->library:source->controller()->game->library;
int nbcards = z->nb_cards;
if (nbcards < 1)
return 0;