Merge pull request #856 from kevlahnota/master

adjust p/t & fix copying animated land
This commit is contained in:
Anthony Calosa
2016-08-14 22:11:53 +08:00
committed by GitHub
3 changed files with 34 additions and 33 deletions

View File

@@ -23,23 +23,23 @@
369072 369072
#4 x Armada Wurm (RTR), {2}{g}{g}{w}{w}, Creature Wurm, 5/5, trample; #4 x Armada Wurm (RTR), {2}{g}{g}{w}{w}, Creature Wurm, 5/5, trample;
999009 253587
999009 253587
999009 253587
999009 253587
#2 x Precinct Captain (RTR), {w}{w}, Creature Human Soldier, 2/2, first strike; #2 x Precinct Captain (RTR), {w}{w}, Creature Human Soldier, 2/2, first strike;
999171 270792
999171 270792
#4 x Wayfaring Temple (RTR), {1}{g}{w}, Creature Elemental, 0/0, #4 x Wayfaring Temple (RTR), {1}{g}{w}, Creature Elemental, 0/0,
999260 253539
999260 253539
999260 253539
999260 253539
#1 x Worldspine Wurm (RTR), {8}{g}{g}{g}, Creature Wurm, 15/15, trample; #1 x Worldspine Wurm (RTR), {8}{g}{g}{g}, Creature Wurm, 15/15, trample;
999262 253575
@@ -57,14 +57,14 @@
369060 369060
#2 x Chromatic Lantern (RTR), {3}, Artifact, #2 x Chromatic Lantern (RTR), {3}, Artifact,
999039 290542
999039 290542
#4 x Growing Ranks (RTR), {2}{g/w}{g/w}, Enchantment, #4 x Growing Ranks (RTR), {2}{g/w}{g/w}, Enchantment,
999106 270957
999106 270957
999106 270957
999106 270957
@@ -84,26 +84,26 @@
369018 369018
#4 x Forest (RTR), Basic Land Forest, #4 x Forest (RTR), Basic Land Forest,
999086 289326
999086 289326
999086 289326
999086 289326
#4 x Plains (RTR), Basic Land Plains, #4 x Plains (RTR), Basic Land Plains,
999168 289310
999168 289310
999168 289310
999168 289310
#2 x Temple Garden (RTR), Land Forest Plains, #2 x Temple Garden (RTR), Land Forest Plains,
999238 253681
999238 253681
#4 x Plains (RTR), Basic Land Plains, #4 x Plains (RTR), Basic Land Plains,
999265 289309
999265 289309
999265 289309
999265 289309

View File

@@ -386,7 +386,7 @@ void CardGui::Render()
char buffer[200]; char buffer[200];
sprintf(buffer, "%i/%i", card->power, card->life); sprintf(buffer, "%i/%i", card->power, card->life);
//move up the p/t box by increasing ymody //move up the p/t box by increasing ymody
float ymody = (card->isAttacker()||card->isDefenser())?-6.0f:0.0f; float ymody = ((card->isAttacker()||card->isDefenser())&&card->isTapped())?-6.0f:0.0f;
renderer->FillRect(actX - (13 * actZ), actY + ymody + 4 * actZ, 25.5f * actZ, 14 * actZ, renderer->FillRect(actX - (13 * actZ), actY + ymody + 4 * actZ, 25.5f * actZ, 14 * actZ,
ARGB(((static_cast<unsigned char>(actA))/2),0,0,0)); ARGB(((static_cast<unsigned char>(actA))/2),0,0,0));
renderer->DrawRect(actX - (13 * actZ), actY + ymody + 4 * actZ, 25.5f * actZ, 14 * actZ, renderer->DrawRect(actX - (13 * actZ), actY + ymody + 4 * actZ, 25.5f * actZ, 14 * actZ,

View File

@@ -106,6 +106,7 @@ void MTGCardInstance::copy(MTGCardInstance * card)
CardPrimitive * data = source->data; CardPrimitive * data = source->data;
basicAbilities = data->basicAbilities; basicAbilities = data->basicAbilities;
types.clear();//reset types.. fix copying man lands... the copier becomes an unanimated land...
for (size_t i = 0; i < data->types.size(); i++) for (size_t i = 0; i < data->types.size(); i++)
{ {
types.push_back(data->types[i]); types.push_back(data->types[i]);
@@ -115,7 +116,7 @@ void MTGCardInstance::copy(MTGCardInstance * card)
manaCost.copy(data->getManaCost()); manaCost.copy(data->getManaCost());
setText(""); //The text is retrieved from the data anyways setText(data->text); //The text is retrieved from the data anyways
setName(data->name); setName(data->name);
power = data->power;//layer 7a power = data->power;//layer 7a