Fix for issue 647 (Evil Presence cast on a swamp removes mana ability)

This commit is contained in:
wagic.the.homebrew
2011-05-08 09:06:56 +00:00
parent b2ba514d7a
commit 2c0b5baab7
10 changed files with 111 additions and 15 deletions
+5 -4
View File
@@ -3767,7 +3767,7 @@ void ListMaintainerAbility::updateTargets()
for (map<MTGCardInstance *, bool>::iterator it = cards.begin(); it != cards.end(); ++it)
{
MTGCardInstance * card = (*it).first;
if (!canBeInList(card))
if (!canBeInList(card) || card->mPropertiesChangedSinceLastUpdate)
{
temp[card] = true;
}
@@ -3794,11 +3794,12 @@ void ListMaintainerAbility::updateTargets()
{
for (int j = 0; j < zone->nb_cards; j++)
{
if (canBeInList(zone->cards[j]))
MTGCardInstance * card = zone->cards[j];
if (canBeInList(card))
{
if (cards.find(zone->cards[j]) == cards.end())
if (cards.find(card) == cards.end())
{
temp[zone->cards[j]] = true;
temp[card] = true;
}
}
}