@@ -3843,6 +3843,13 @@ AAMover::AAMover(GameObserver* observer, int _id, MTGCardInstance * _source, MTG
|
||||
MTGGameZone * AAMover::destinationZone(Targetable * target)
|
||||
{
|
||||
MTGCardInstance * _target = (MTGCardInstance *) target;
|
||||
if(destination == "previousbattlefield")
|
||||
{
|
||||
if(_target->previousController)
|
||||
return _target->previousController->inPlay();
|
||||
else
|
||||
return _target->controller()->inPlay();
|
||||
}
|
||||
return MTGGameZone::stringToZone(game, destination, source, _target);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ MTGCardInstance::MTGCardInstance(MTGCard * card, MTGPlayerCards * arg_belongs_to
|
||||
if (arg_belongs_to)
|
||||
owner = arg_belongs_to->library->owner;
|
||||
lastController = owner;
|
||||
previousController = owner;
|
||||
defenser = NULL;
|
||||
banding = NULL;
|
||||
life = toughness;
|
||||
|
||||
@@ -576,6 +576,7 @@ MTGCardInstance * MTGGameZone::removeCard(MTGCardInstance * card, int createCopy
|
||||
copy->storedCard = card->storedCard;
|
||||
copy->storedSourceCard = card->storedSourceCard;
|
||||
copy->lastController = card->controller();
|
||||
copy->previousController = card->controller();
|
||||
for (int i = 0; i < ManaCost::MANA_PAID_WITH_OVERLOAD +1; i++)
|
||||
copy->alternateCostPaid[i] = card->alternateCostPaid[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user