Erwan
- fix soul warden - fix counters (chainbreaker) - removed cards that do not work - updated version
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user