Merge pull request #13 from WagicProject/master

getting master
This commit is contained in:
zethfoxster
2016-07-08 17:54:14 -04:00
committed by GitHub
8 changed files with 331 additions and 332 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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

View 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]

View File

@@ -113,6 +113,7 @@ public:
bool isDualWielding;
bool stillNeeded;
Player * lastController;
Player * previousController;
MTGGameZone * getCurrentZone();
MTGGameZone * previousZone;
MTGCardInstance * previous;

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -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];