unattach animated equipment

another bug found is when the equipment becomes a creature, its ability
is granted to itself...
This commit is contained in:
Anthony Calosa
2017-01-26 02:12:02 +08:00
parent 60f6c683a3
commit de2d663968
3 changed files with 12 additions and 4 deletions

View File

@@ -73,6 +73,8 @@ public:
class MTGPutInPlayRule: public PermanentAbility
{
protected:
string defaultPlayName;
public:
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL);
int reactToClick(MTGCardInstance * card);
@@ -80,8 +82,8 @@ public:
MTGPutInPlayRule(GameObserver* observer, int _id);
const string getMenuText()
{
if(game && game->gameType() == GAME_TYPE_MOMIR)
return "Play Land";
if(defaultPlayName.size())
return defaultPlayName.c_str();
return "Cast Card Normally";
}
virtual MTGPutInPlayRule * clone() const;