File diff suppressed because it is too large
Load Diff
@@ -455,6 +455,7 @@ library_of_alexandria3.txt
|
||||
lifeforce.txt
|
||||
lifeline.txt
|
||||
lifetap.txt
|
||||
lifetap2.txt
|
||||
lightmine_field.txt
|
||||
lightmine_field2.txt
|
||||
living_artifact_i169.txt
|
||||
|
||||
22
projects/mtg/bin/Res/test/lifetap2.txt
Normal file
22
projects/mtg/bin/Res/test/lifetap2.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
#Player 2 must not gain life because Shocklands enters tha battlefied tapped...
|
||||
[INIT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
hand:Stomping Ground, Temple Garden
|
||||
inplay:Exploration
|
||||
[PLAYER2]
|
||||
inplay:Lifetap
|
||||
life:20
|
||||
[DO]
|
||||
Stomping Ground
|
||||
choice 1
|
||||
Temple Garden
|
||||
choice 1
|
||||
[ASSERT]
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
inplay:Exploration, Stomping Ground, Temple Garden
|
||||
[PLAYER2]
|
||||
inplay:Lifetap
|
||||
life:20
|
||||
[END]
|
||||
@@ -113,6 +113,7 @@ public:
|
||||
bool isDualWielding;
|
||||
bool stillNeeded;
|
||||
Player * lastController;
|
||||
Player * previousController;
|
||||
MTGGameZone * getCurrentZone();
|
||||
MTGGameZone * previousZone;
|
||||
MTGCardInstance * previous;
|
||||
|
||||
@@ -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