- Fix a bug with Nevinyrrals Disk
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-04-05 13:22:37 +00:00
parent a68478dcca
commit a8942331eb
8 changed files with 84 additions and 17 deletions
+12 -4
View File
@@ -375,8 +375,12 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
if (myNbCards < opponentNbCards || myCardsPower < opponentCardsPower) return BAKA_EFFECT_GOOD;
return BAKA_EFFECT_BAD;
}else{
this->destroyAllInPlay(targetAll,1);
delete targetAll;
if (cost){
game->addObserver(NEW AAllDestroyer(id, card,targetAll,1,cost,doTap));
}else{
this->destroyAllInPlay(targetAll,1);
delete targetAll;
}
}
}else{
if (dryMode) return BAKA_EFFECT_BAD;
@@ -410,8 +414,12 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
if (myNbCards < opponentNbCards || myCardsPower < opponentCardsPower) return BAKA_EFFECT_GOOD;
return BAKA_EFFECT_BAD;
}else{
this->destroyAllInPlay(targetAll);
delete targetAll;
if (cost){
game->addObserver(NEW AAllDestroyer(id, card,targetAll,0,cost,doTap));
}else{
this->destroyAllInPlay(targetAll);
delete targetAll;
}
}
}else{
if (dryMode) return BAKA_EFFECT_BAD;