Laurent - Fixed the Basislik (not tested) and also some glitch in the token creation for Artifact Mutation and elvish promenade (added the "token" in the subtype since some cards target token).

This commit is contained in:
wagic.laurent
2009-05-25 22:07:06 +00:00
parent 182b133719
commit 2f9df464b6
2 changed files with 2 additions and 10 deletions

View File

@@ -3247,14 +3247,6 @@ class ABasilik:public MTGAbility{
}
}
}
int testDestroy(){
if(!game->isInPlay(source) && currentPhase != Constants::MTG_PHASE_UNTAP){
return 0;
}else{
return MTGAbility::testDestroy();
}
}
virtual ostream& toString(ostream& out) const
{

View File

@@ -1824,7 +1824,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
{
card->target->controller()->game->putInGraveyard(card->target);
int x = card->target->getManaCost()->getConvertedCost();
ATokenCreator * tok = NEW ATokenCreator(id,card,NEW ManaCost(),"Saproling token","creature",1,1,"green",0);
ATokenCreator * tok = NEW ATokenCreator(id,card,NEW ManaCost(),"Saproling","creature Saproling token",1,1,"green",0);
for (int i=0; i < x; i++){
tok->resolve();
}
@@ -1836,7 +1836,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
case 139676: // Elvish Promenade
{
int x = card->controller()->game->inPlay->countByType("Elf");
ATokenCreator * tok = NEW ATokenCreator(id,card,NEW ManaCost(),"Elf Warrior token","creature",1,1,"green",0);
ATokenCreator * tok = NEW ATokenCreator(id,card,NEW ManaCost(),"Elf Warrior","creature Elf Warrior token",1,1,"green",0);
for (int i=0; i < x-1; i++){
tok->resolve();
}