added "abilities=canattack"
Warmonger's Chariot 6/15/2010: The second ability doesn't cause the equipped creature to lose defender. It just lets it attack.
This commit is contained in:
@@ -176,11 +176,12 @@ SNOWPLAINSWALK = 87,
|
|||||||
SNOWMOUNTAINWALK = 88,
|
SNOWMOUNTAINWALK = 88,
|
||||||
SNOWISLANDWALK = 89,
|
SNOWISLANDWALK = 89,
|
||||||
SNOWSWAMPWALK = 90,
|
SNOWSWAMPWALK = 90,
|
||||||
|
CANATTACK = 91,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NB_BASIC_ABILITIES = 91,
|
NB_BASIC_ABILITIES = 92,
|
||||||
|
|
||||||
|
|
||||||
RARITY_S = 'S', //Special Rarity
|
RARITY_S = 'S', //Special Rarity
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ int MTGCardInstance::canAttack()
|
|||||||
return 0;
|
return 0;
|
||||||
if (hasSummoningSickness())
|
if (hasSummoningSickness())
|
||||||
return 0;
|
return 0;
|
||||||
if (basicAbilities[Constants::DEFENSER] || basicAbilities[Constants::CANTATTACK])
|
if ((basicAbilities[Constants::DEFENSER] || basicAbilities[Constants::CANTATTACK]) && !basicAbilities[Constants::CANATTACK])
|
||||||
return 0;
|
return 0;
|
||||||
if (!isCreature())
|
if (!isCreature())
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -117,7 +117,8 @@ const char* Constants::MTGBasicAbilities[] = {
|
|||||||
"snowplainslandwalk",
|
"snowplainslandwalk",
|
||||||
"snowmountainlandwalk",
|
"snowmountainlandwalk",
|
||||||
"snowislandlandwalk",
|
"snowislandlandwalk",
|
||||||
"snowswamplandwalk"
|
"snowswamplandwalk",
|
||||||
|
"canattack"
|
||||||
};
|
};
|
||||||
|
|
||||||
map<string,int> Constants::MTGBasicAbilitiesMap;
|
map<string,int> Constants::MTGBasicAbilitiesMap;
|
||||||
|
|||||||
Reference in New Issue
Block a user