- changed "putInPlay" to return "NULL" if the card cannot be found in the "from" zone. The behavior of the function before that prevented to see that we broke the "alternate" cost feature (see test Vine Dryad)
- Fixed some memory leaks introduced in r2922
This commit is contained in:
wagic.the.homebrew@gmail.com
2011-01-22 09:43:13 +00:00
parent 094c97dec8
commit d581a72c1d
4 changed files with 58 additions and 54 deletions
+2 -3
View File
@@ -685,15 +685,14 @@ const char * AADrawer::getMenuText()
AADrawer * AADrawer::clone() const
{
AADrawer * a = NEW AADrawer(*this);
a->nbcards = NEW WParsedInt(*(a->nbcards));
a->nbcards = NEW WParsedInt(*(this->nbcards));
a->isClone = 1;
return a;
}
AADrawer::~AADrawer()
{
if(!isClone)
SAFE_DELETE(nbcards);
SAFE_DELETE(nbcards);
}
// AAFrozen: Prevent a card from untapping during next untap phase