- Added cloud ability to pass the symbolic "1000 cards" bar :)
This commit is contained in:
wagic.the.homebrew
2009-02-01 07:34:55 +00:00
parent 0de5993836
commit e984b7f781
7 changed files with 68 additions and 58 deletions

View File

@@ -246,6 +246,8 @@ int MTGCardInstance::canBlock(MTGCardInstance * opponent){
if (opponent->basicAbilities[Constants::UNBLOCKABLE]) return 0;
if (opponent->basicAbilities[Constants::FEAR] && !(hasColor(Constants::MTG_COLOR_ARTIFACT) || hasColor(Constants::MTG_COLOR_BLACK))) return 0;
if (opponent->basicAbilities[Constants::FLYING] && !( basicAbilities[Constants::FLYING] || basicAbilities[Constants::REACH])) return 0;
//Can block only creatures with flying if has cloud
if (basicAbilities[Constants::CLOUD] && !( opponent->basicAbilities[Constants::FLYING])) return 0;
// If opponent has shadow and a creature does not have either shadow or reachshadow it cannot be blocked
if (opponent->basicAbilities[Constants::SHADOW] && !( basicAbilities[Constants::SHADOW] || basicAbilities[Constants::REACHSHADOW])) return 0;
// If opponent does not have shadow and a creature has shadow it cannot be blocked