Merge pull request #30 from WagicProject/master

getting master
This commit is contained in:
zethfoxster
2016-07-23 09:19:12 -04:00
committed by GitHub
5 changed files with 15 additions and 8 deletions
+2
View File
@@ -3982,6 +3982,8 @@ int AbilityFactory::abilityEfficiency(MTGAbility * a, Player * p, int mode, Targ
badAbilities[(int)Constants::WEAK] = true;
badAbilities[(int)Constants::NOLIFEGAIN] = true;
badAbilities[(int)Constants::NOLIFEGAINOPPONENT] = true;
badAbilities[(int)Constants::MUSTBLOCK] = true;
badAbilities[(int)Constants::FLYERSONLY] = true;
if (AInstantBasicAbilityModifierUntilEOT * abi = dynamic_cast<AInstantBasicAbilityModifierUntilEOT *>(a))
{
+2
View File
@@ -637,6 +637,8 @@ int MTGCardInstance::canAttack()
{
if (basicAbilities[(int)Constants::CANTATTACK])
return 0;
if (basicAbilities[(int)Constants::FLYERSONLY] && !basicAbilities[(int)Constants::FLYING])
return 0;
if (tapped)
return 0;
if (hasSummoningSickness())
+2 -1
View File
@@ -165,7 +165,8 @@ const char* Constants::MTGBasicAbilities[] = {
"mustblock",
"dethrone",
"overload",
"shackler"
"shackler",
"flyersonly"
};
map<string,int> Constants::MTGBasicAbilitiesMap;