Merge pull request #801 from kevlahnota/master
Fix Compilation and add Tireless Tracker Test
This commit is contained in:
33
projects/mtg/bin/Res/test/TirelessTracker.txt
Normal file
33
projects/mtg/bin/Res/test/TirelessTracker.txt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#Tireless Tracker counters
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Concordant Crossroads, Swamp, Tireless Tracker
|
||||||
|
library:Mountain
|
||||||
|
hand:Plains
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
Plains
|
||||||
|
Swamp
|
||||||
|
Plains
|
||||||
|
Clue
|
||||||
|
#begins
|
||||||
|
next
|
||||||
|
#attack
|
||||||
|
next
|
||||||
|
Tireless Tracker
|
||||||
|
next
|
||||||
|
#damage
|
||||||
|
next
|
||||||
|
#end
|
||||||
|
eot
|
||||||
|
#untap
|
||||||
|
[ASSERT]
|
||||||
|
UNTAP
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Concordant Crossroads, Swamp, Tireless Tracker, Plains
|
||||||
|
hand:Mountain
|
||||||
|
life:20
|
||||||
|
[PLAYER2]
|
||||||
|
life:16
|
||||||
|
[END]
|
||||||
@@ -682,6 +682,7 @@ tidal_warrior_i646.txt
|
|||||||
tidal_warrior_i649.txt
|
tidal_warrior_i649.txt
|
||||||
tidal_warrior_i652.txt
|
tidal_warrior_i652.txt
|
||||||
Timely_Reinforcements.txt
|
Timely_Reinforcements.txt
|
||||||
|
TirelessTracker.txt
|
||||||
titanic_ultimatum.txt
|
titanic_ultimatum.txt
|
||||||
tokenizer.txt
|
tokenizer.txt
|
||||||
tokenizer2.txt
|
tokenizer2.txt
|
||||||
|
|||||||
@@ -1370,8 +1370,8 @@ public:
|
|||||||
{
|
{
|
||||||
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
|
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
|
||||||
if (!e) return 0;
|
if (!e) return 0;
|
||||||
//if (e->istoken)
|
if (e->istoken)
|
||||||
// return 1;
|
return 1;
|
||||||
MTGCardInstance * check = e->cardAfter;
|
MTGCardInstance * check = e->cardAfter;
|
||||||
MTGGameZone * oldZone = e->cardAfter->currentZone;
|
MTGGameZone * oldZone = e->cardAfter->currentZone;
|
||||||
check->currentZone = check->previousZone;
|
check->currentZone = check->previousZone;
|
||||||
|
|||||||
@@ -1132,20 +1132,22 @@ void GameObserver::Affinity()
|
|||||||
}
|
}
|
||||||
///we handle trisnisphere seperately because its a desaster.
|
///we handle trisnisphere seperately because its a desaster.
|
||||||
if(card->getManaCost())//make sure we check, abiliy$!/token dont have a mancost object.
|
if(card->getManaCost())//make sure we check, abiliy$!/token dont have a mancost object.
|
||||||
if (card->has(Constants::TRINISPHERE))
|
|
||||||
{
|
{
|
||||||
for (int jj = card->getManaCost()->getConvertedCost(); jj < 3; jj++)
|
if (card->has(Constants::TRINISPHERE))
|
||||||
{
|
{
|
||||||
card->getManaCost()->add(Constants::MTG_COLOR_ARTIFACT, 1);
|
for (int jj = card->getManaCost()->getConvertedCost(); jj < 3; jj++)
|
||||||
card->countTrini++;
|
{
|
||||||
|
card->getManaCost()->add(Constants::MTG_COLOR_ARTIFACT, 1);
|
||||||
|
card->countTrini++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
else
|
|
||||||
{
|
|
||||||
if (card->countTrini)
|
|
||||||
{
|
{
|
||||||
card->getManaCost()->remove(Constants::MTG_COLOR_ARTIFACT, card->countTrini);
|
if (card->countTrini)
|
||||||
card->countTrini = 0;
|
{
|
||||||
|
card->getManaCost()->remove(Constants::MTG_COLOR_ARTIFACT, card->countTrini);
|
||||||
|
card->countTrini = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
///////////////////////
|
///////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user