Added/fixed primitives, updated the "missing_cards_by_sets" folder, fixed several crash on Commander Format, fixed a possible crash using "and!()!" with "imprint", added a new macros "_REBOUND_" and "_GOAD_" related to rebound and goad abilities and refactored all cards using them, implemented a new keywords "haunt", "hasprey", "preyname" and "isprey" related the haunting ability and improved all cards using it, Added "commander" and "\*" to HINT castpriority for AI decks in order to allow the user to give a cast priority to commanders.
This commit is contained in:
@@ -2748,7 +2748,10 @@ MTGCardInstance * AIPlayerBaka::FindCardToPlay(ManaCost * pMana, const char * ty
|
||||
}
|
||||
CardDescriptor cd;
|
||||
cd.init();
|
||||
cd.setType(type);
|
||||
if(!strcmp(type,"commander")) //Added to allow the casting priority for commanders
|
||||
cd.basicAbilities[Constants::ISCOMMANDER] = 1;
|
||||
else if(strcmp(type,"*")) //Added to allow the wildcard in casting priority
|
||||
cd.setType(type);
|
||||
card = NULL;
|
||||
payAlternative = NONE;
|
||||
gotPayments = vector<MTGAbility*>();
|
||||
|
||||
Reference in New Issue
Block a user