- fix soul warden
- fix counters (chainbreaker)
- removed cards that do not work
- updated version
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-27 10:33:11 +00:00
parent 7d672e091a
commit bb4cb3be7d
24 changed files with 201 additions and 184 deletions

View File

@@ -11,7 +11,7 @@
#include "../include/utils.h"
#include "../include/DeckDataWrapper.h"
static const char* GAME_VERSION = "WTH?! 0.7.1 - by WilLoW";
static const char* GAME_VERSION = "WTH?! 0.8.0 - by wololo";
#define DEFAULT_ANGLE_MULTIPLIER 0.4
#define MAX_ANGLE_MULTIPLIER (3*M_PI)

View File

@@ -517,14 +517,15 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
size_t end = s.find(")", found);
size_t separator = s.find(",", found);
if (separator != string::npos){
nb = atoi(s.substr(found,separator-found).c_str());
string nbstr = s.substr(separator+1,end-separator-1);
nb = atoi(nbstr.c_str());
end = separator;
}
string spt = s.substr(found,end-found);
int power, toughness;
if ( parsePowerToughness(spt,&power, &toughness)){
MTGAbility * a = NEW AACounter(id,card,target,power,toughness,nb);
a->oneShot = 1;
a->oneShot = 1;
return a;
}
return NULL;

View File

@@ -319,6 +319,7 @@ int MTGCardInstance::canAttack(){
if (hasSummoningSickness()) return 0;
if (basicAbilities[Constants::DEFENSER] || basicAbilities[Constants::CANTATTACK]) return 0;
if (!isACreature()) return 0;
if (!isInPlay()) return 0;
return 1;
}