Small fixes (misstype, formatting, target p2)

This commit is contained in:
pankdm
2013-10-18 06:38:15 +00:00
parent 38b4213f9c
commit b5794ad328
6 changed files with 14 additions and 12 deletions

View File

@@ -41358,7 +41358,7 @@ type=Legendary Enchantment
###The 2 cards above should stay together (Flip Card)###
[card]
name=Honden of Cleansing Fire
auto=@each my upkeep:life:type:shrine && life:type:shrine
auto=@each my upkeep:life:twicetype:shrine
text=At the beginning of your upkeep, you gain 2 life for each Shrine you control.
mana={3}{W}
type=Legendary Enchantment
@@ -50519,7 +50519,7 @@ toughness=4
[/card]
[card]
name=Lightmine Field
auto=@each blockers:damage:type:creature[attacking]:battlefield all(creature[attacking]|Battlefield)
auto=@each blockers:foreach(creature[attacking]|Battlefield) damage:1 all(creature[attacking]|Battlefield)
text=Whenever one or more creatures attack, Lightmine Field deals damage to each of those creatures equal to the number of attacking creatures.
mana={2}{W}{W}
type=Enchantment
@@ -70900,8 +70900,8 @@ toughness=2
[card]
name=Rending Vines
target=artifact,enchantment
auto=teach(artifact[manacost<=type:*:opponenthand]) destroy
auto=teach(enchantment[manacost<=type:*:opponenthand]) destroy
auto=teach(artifact[manacost<=type:*:myhand]) destroy
auto=teach(enchantment[manacost<=type:*:myhand]) destroy
auto=draw:1 controller
text=Destroy target artifact or enchantment if its converted mana cost is less than or equal to the number of cards in your hand. -- Draw a card.
mana={1}{G}{G}

View File

@@ -9,6 +9,7 @@ manapool:{2}{B}
graveyard:swamp,grizzly bears,dragon engine
[DO]
Spoils Of Evil
p2
[ASSERT]
FIRSTMAIN
[PLAYER1]

View File

@@ -199,7 +199,7 @@ private:
for (int k = 0; k < 4; k++)
{
MTGGameZone * zone = zones[k];
if (tc->targetsZone(zone, target))
if (tc->targetsZone(zone, card))
{
if (color)
{

View File

@@ -1777,7 +1777,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
found = s.find("compare");
if (found != string::npos)
{
compareZone = true;
compareZone = true;
}
switch (i)
@@ -1810,7 +1810,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
{
result->oneShot = oneShot;
a->forcedAlive = forcedalive;
if(neverRemove)
if (neverRemove)
{
result->oneShot = false;
result->forceDestroy = -1;

View File

@@ -554,7 +554,7 @@ unsigned int MTGGameZone::countByCanTarget(TargetChooser * tc)
int result = 0;
for (int i = 0; i < (nb_cards); i++)
{
if (tc->canTarget(cards[i]), withoutProtections)
if (tc->canTarget(cards[i], withoutProtections))
{
result++;
}
@@ -572,7 +572,7 @@ unsigned int MTGGameZone::countTotalManaSymbols(TargetChooser * tc, int color)
int result = 0;
for (int i = 0; i < nb_cards; i++)
{
if (tc->canTarget(cards[i]), withoutProtections)
if (tc->canTarget(cards[i], withoutProtections))
{
result += cards[i]->getManaCost()->getManaSymbols(color);
}
@@ -947,7 +947,7 @@ MTGGameZone * MTGGameZone::intToZone(GameObserver *g, int zoneId, MTGCardInstanc
{
//bug or bug case default to
p2 = source->controller();
target = source;
target = source;
}
}
else

View File

@@ -1258,10 +1258,11 @@ bool TargetZoneChooser::targetsZone(MTGGameZone * z)
if (MTGGameZone::intToZone(Owner->getObserver(), zones[i], source) == z) return true;
return false;
}
bool TargetZoneChooser::targetsZone(MTGGameZone * z,MTGCardInstance * mSource)
{
if(mSource)
source = mSource;
if (mSource)
source = mSource;
for (int i = 0; i < nbzones; i++)
if (MTGGameZone::intToZone(source->owner->getObserver(), zones[i], source) == z) return true;
return false;