Jonathan - some random update + my first edition on MTGAbility.cpp + not tested Cruel Tutor (POR), I hope it doesn't shuffle after the card is put on to the top of the library.....

This commit is contained in:
leungclj
2009-07-26 08:00:23 +00:00
parent 94e199d92a
commit cd040a51ec
13 changed files with 35 additions and 47 deletions

View File

@@ -1272,12 +1272,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver(NEW APsychicVenom(_id, card, card->target));
break;
}
case 1221: //Serendib Efreet
{
game->addObserver( NEW ASerendibEfreet(_id, card));
break;
}
case 1226: //Steal Artifact
case 1226: //Steal Artifact
{
game->addObserver( NEW AControlStealAura(_id, card, card->target));
break;
@@ -1735,21 +1730,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver(NEW UntapBlocker(_id,card,card->target));
break;
}
case 135197: //Stronghold Discipline
{
GameObserver * game = GameObserver::GetInstance();
for (int i = 0; i < 2 ; i++){
for (int j = 0; j < game->players[i]->game->inPlay->nb_cards; j++){
MTGCardInstance * current = game->players[i]->game->inPlay->cards[j];
if (current->hasType("Creature")){
current->controller()->life-= 1;
}
}
}
break;
}
case 130369: // Soulblast
{
int damage = 0;