fixed a couple memleaks, also added human player targeting for blocking.
This commit is contained in:
@@ -3483,6 +3483,7 @@ MTGCardInstance * OriginalSrc;
|
||||
MTGCardInstance * storedTarget;
|
||||
MTGAbility * storedAbility;
|
||||
MTGAbility * clonedStored;
|
||||
MTGAbility * mainAbility;
|
||||
string menu;
|
||||
|
||||
AADynamic(GameObserver* observer, int id, MTGCardInstance * card, Damageable * _target,int type = 0,int effect = 0,int who = 0,int amountsource = 1,MTGAbility * storedAbility = NULL, ManaCost * _cost = NULL);
|
||||
|
||||
@@ -243,15 +243,17 @@ public:
|
||||
class MTGBlockRule: public PermanentAbility
|
||||
{
|
||||
public:
|
||||
string blockmenu;
|
||||
TargetChooser * tcb;
|
||||
MTGAbility * blocker;
|
||||
MTGAbility * blockAbility;
|
||||
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL);
|
||||
int reactToClick(MTGCardInstance * card);
|
||||
virtual ostream& toString(ostream& out) const;
|
||||
MTGBlockRule(GameObserver* observer, int _id);
|
||||
const char * getMenuText()
|
||||
{
|
||||
return "Blocker";
|
||||
}
|
||||
const char * getMenuText();
|
||||
virtual MTGBlockRule * clone() const;
|
||||
~MTGBlockRule();
|
||||
};
|
||||
|
||||
/* Persist Rule */
|
||||
|
||||
Reference in New Issue
Block a user