- 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
+1 -1
View File
@@ -5,7 +5,7 @@
#include "../include/GameOptions.h"
#include "../include/GameApp.h"
static const char* GAME_VERSION = "WTH?! 0.5.1 - by WilLoW";
static const char* GAME_VERSION = "WTH?! 0.6.0 - by WilLoW";
#define ALPHA_WARNING 0
#define DEFAULT_ANGLE_MULTIPLIER 0.4
+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;