Erwan
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user