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:
Vittorio Alfieri
2021-09-02 19:32:45 +02:00
parent 54d0c32035
commit 001cea95bd
51 changed files with 634 additions and 800 deletions
+11
View File
@@ -1546,6 +1546,17 @@ public:
AAImprint * clone() const;
~AAImprint();
};
//AAHaunt
class AAHaunt: public ActivatedAbility
{
public:
MTGAbility * andAbility;
AAHaunt(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target = NULL, ManaCost * _cost = NULL);
int resolve();
const string getMenuText();
AAHaunt * clone() const;
~AAHaunt();
};
//AAConjure
class AAConjure: public ActivatedAbility
{
+2 -1
View File
@@ -297,7 +297,8 @@ public:
ManaCost * computeNewCost(MTGCardInstance * card,ManaCost * oldCost, ManaCost * refCost,bool noTrinisphere = false, bool bestow = false);
int countTrini;
bool anymanareplacement;
vector<MTGCardInstance*>imprintedCards;
vector<MTGCardInstance*> imprintedCards;
MTGCardInstance* hauntedCard;
int attackCost;
int attackCostBackup;
int attackPlaneswalkerCost;
+2 -1
View File
@@ -322,7 +322,8 @@ class Constants
SHOWOPPONENTHAND = 195,
SHOWCONTROLLERHAND = 196,
HASREPLICATE = 197,
NB_BASIC_ABILITIES = 198,
ISPREY = 198,
NB_BASIC_ABILITIES = 199,
RARITY_S = 'S', //Special Rarity
RARITY_M = 'M', //Mythics