Addes some new primitives from BRO set, fixes BRO and BRC dat files, updated image list url for BRO and BRS sets, imrpoved an AI deck, improved meld ability with "and" option, added new ability to allow a planeswalker to activate its loyalty abilities twice in a turn, improved Android downloader.

This commit is contained in:
Vittorio Alfieri
2023-05-28 23:17:21 +02:00
parent 066b30b1b7
commit 99f08276c6
12 changed files with 560 additions and 16 deletions
+12 -1
View File
@@ -4735,6 +4735,7 @@ AAMeld::AAMeld(GameObserver* observer, int id, MTGCardInstance * card, MTGCardIn
ActivatedAbility(observer, id, card, 0), _MeldedName(MeldedName)
{
target = _target;
andAbility = NULL;
// aType = MTGAbility::Melder;
}
@@ -4751,6 +4752,8 @@ int AAMeld::resolve()
MTGAbility *a = NEW AACastCard(game, game->mLayers->actionLayer()->getMaxId(), source, source, false, false, false, _MeldedName, _MeldedName, false, true);
a->oneShot = false;
a->canBeInterrupted = false;
if(andAbility)
((AACastCard*)a)->andAbility = andAbility->clone();
a->addToGame();
return 1;
@@ -4765,7 +4768,15 @@ const string AAMeld::getMenuText()
AAMeld * AAMeld::clone() const
{
return NEW AAMeld(*this);
AAMeld * a = NEW AAMeld(*this);
if(andAbility)
a->andAbility = andAbility->clone();
return a;
}
AAMeld::~AAMeld()
{
SAFE_DELETE(andAbility);
}
//Turn side of double faced cards