removed a little peice of another project that snuck into bloddthirst patch.
This commit is contained in:
@@ -107,9 +107,8 @@ class Constants
|
|||||||
POISONDAMAGE = 49,
|
POISONDAMAGE = 49,
|
||||||
POISONTWODAMAGE = 50,
|
POISONTWODAMAGE = 50,
|
||||||
POISONTHREEDAMAGE = 51,
|
POISONTHREEDAMAGE = 51,
|
||||||
POWERBLOCKER = 52,
|
|
||||||
|
|
||||||
NB_BASIC_ABILITIES = 53,
|
NB_BASIC_ABILITIES = 52,
|
||||||
|
|
||||||
|
|
||||||
RARITY_S = 'S', //Special Rarity
|
RARITY_S = 'S', //Special Rarity
|
||||||
|
|||||||
@@ -343,7 +343,6 @@ int MTGCardInstance::canBlock(MTGCardInstance * opponent){
|
|||||||
if (!opponent->isAttacker()) return 0;
|
if (!opponent->isAttacker()) return 0;
|
||||||
// Comprehensive rule 502.7f : If a creature with protection attacks, it can't be blocked by creatures that have the stated quality.
|
// Comprehensive rule 502.7f : If a creature with protection attacks, it can't be blocked by creatures that have the stated quality.
|
||||||
if (opponent->protectedAgainst(this)) return 0;
|
if (opponent->protectedAgainst(this)) return 0;
|
||||||
if (opponent->power > !(defenser->power) && opponent->has(basicAbilities[Constants::POWERBLOCKER])) return 0;
|
|
||||||
if (opponent->cantBeBlockedBy(this)) return 0;
|
if (opponent->cantBeBlockedBy(this)) return 0;
|
||||||
if (opponent->basicAbilities[Constants::UNBLOCKABLE]) return 0;
|
if (opponent->basicAbilities[Constants::UNBLOCKABLE]) return 0;
|
||||||
if (opponent->basicAbilities[Constants::ONEBLOCKER] && opponent->blocked) return 0;
|
if (opponent->basicAbilities[Constants::ONEBLOCKER] && opponent->blocked) return 0;
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ const char* Constants::MTGBasicAbilities[] = {
|
|||||||
"poisondamage",
|
"poisondamage",
|
||||||
"poisontwodamage",
|
"poisontwodamage",
|
||||||
"poisonthreedamage",
|
"poisonthreedamage",
|
||||||
"powerblocker"
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user