little bit of hard code clean up, soft coded the following cards and removed thier hard codes

Angelic Chorus
Lavaborn Muse
Pestilence
Living Artifact
Hypnotic Specter
there is test for each of these.
btw living artifact hard code was wrong, it was allowing you to remove counters at any phase, the soft code is actually correct. updated living artifact test to the correct version in next rev
also fixed a case where "thatmuch" was never set, i now also store the amount on the source of the trigger as well.
This commit is contained in:
omegablast2002@yahoo.com
2011-03-31 16:15:30 +00:00
parent 6572a11848
commit 476a74340a
3 changed files with 6 additions and 332 deletions
+1 -27
View File
@@ -3451,16 +3451,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
}
break;
}
case 1165: //Hypnotic Specter
{
game->addObserver(NEW AHypnoticSpecter(_id, card));
break;
}
case 1258: //Living Artifact
{
game->addObserver(NEW ALivingArtifact(_id, card, card->target));
break;
}
case 1209: //Mana Short
{
Player * player = spell->getNextPlayerTarget();
@@ -3486,12 +3476,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
}
break;
}
case 1172: //Pestilence
{
game->addObserver(NEW APestilence(_id, card));
break;
}
case 1176: //Sacrifice
{
ASacrifice * ability = NEW ASacrifice(_id, card, card->target);
@@ -3642,22 +3626,12 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
//-- addon 10E---
case 129710: //Angelic Chorus
{
game->addObserver(NEW AAngelicChorus(_id, card));
break;
}
case 129767: //Threaten
{
game->addObserver(NEW AInstantControlSteal(_id, card, card->target));
break;
}
case 130373: //Lavaborn Muse
{
game->addObserver(NEW ALavaborn(_id, card, Constants::MTG_PHASE_UPKEEP, -3, -3));
break;
}
case 129774: // Traumatize
{
int nbcards;