- fixed a few cards
- removed extra phasebar
- doesnotuntap and protection from... will now work as auras
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-10 13:22:22 +00:00
parent f3a25b3f3d
commit 258e08786d
8 changed files with 24 additions and 100 deletions

View File

@@ -567,6 +567,12 @@ int MTGCardInstance::removeProtection(CardDescriptor * cd, int erase){
}
int MTGCardInstance::protectedAgainst(MTGCardInstance * card){
//Basic protections
for (int i=Constants::PROTECTIONGREEN; i <= Constants::PROTECTIONWHITE; i++){
if (basicAbilities[i] && card->hasColor( i - Constants::PROTECTIONGREEN + Constants::MTG_COLOR_GREEN )) return 1;
}
//General protections
for (int i = 0; i < nbprotections ; i++){
if (protections[i]->match(card)) return 1;
}