Add Support for Vedlaken Shackles and the likes

the alias 50120 is there to prevent untap  during untap phase and the
canuntap restriction will trigger if it's possible to untap ie tha card
doesn't have doesnotuntap,, or frozen or is tapped.
This commit is contained in:
Anthony Calosa
2016-06-30 16:18:39 +08:00
parent e6aafbc8a6
commit 547a9fcc17
6 changed files with 222 additions and 49 deletions
+31
View File
@@ -5136,6 +5136,37 @@ public:
ABlockSetCost * clone() const;
};
//AShackle
class AShackle: public MTGAbility
{
public:
MTGCardInstance * Shackled;
Player * previousController;
bool resolved;
AShackle(GameObserver* observer, int _id, MTGCardInstance * card, MTGCardInstance * _target);
void Update(float dt);
void resolveShackle();
int resolve();
const string getMenuText();
AShackle * clone() const;
~AShackle();
private:
void returntoOwner(MTGCardInstance *_target);
};
//ShackleWrapper
class AShackleWrapper: public InstantAbility
{
public:
AShackle * ability;
AShackleWrapper(GameObserver* observer, int _id, MTGCardInstance * card, MTGCardInstance * _target);
int resolve();
const string getMenuText();
AShackleWrapper * clone() const;
~AShackleWrapper();
};
//ABlink
class ABlink: public MTGAbility
{