Added HTR18, HT19, AFR and AFC sets, added/fixed old primitives, improved Android dowloader, fixed it lang file, fixed IMA rarities, fixed order index of some old sets, added all features from D&D such as Dungeon Cards and Dice (d20,d10, adn so on).
This commit is contained in:
@@ -267,6 +267,7 @@ void MTGCardInstance::initMTGCI()
|
||||
lastFlipResult = -1;
|
||||
dieSide = 0;
|
||||
lastRollResult = 0;
|
||||
dieNumFaces = 0;
|
||||
scryedCards = 0;
|
||||
isAttacking = NULL;
|
||||
storedCard = NULL;
|
||||
@@ -529,9 +530,14 @@ int MTGCardInstance::toGrave( bool forced )
|
||||
}
|
||||
if (basicAbilities[(int)Constants::INPLAYDEATH] || basicAbilities[(int)Constants::INPLAYTAPDEATH])
|
||||
{
|
||||
p->game->putInZone(this, p->game->inPlay, owner->game->battlefield);
|
||||
if(basicAbilities[(int)Constants::INPLAYTAPDEATH])
|
||||
tap(true);
|
||||
bool toTap = basicAbilities[(int)Constants::INPLAYTAPDEATH];
|
||||
bool addCounter = basicAbilities[(int)Constants::COUNTERDEATH];
|
||||
MTGCardInstance* ret = p->game->putInZone(this, p->game->inPlay, owner->game->graveyard);
|
||||
ret = p->game->putInZone(ret, owner->game->graveyard, owner->game->battlefield);
|
||||
if(toTap)
|
||||
ret->tap(true);
|
||||
if(addCounter)
|
||||
ret->counters->addCounter(1, 1, false);
|
||||
return 1;
|
||||
}
|
||||
if (!basicAbilities[(int)Constants::INDESTRUCTIBLE])
|
||||
@@ -1028,6 +1034,9 @@ bool MTGCardInstance::canPlayFromLibrary()
|
||||
if(isSorceryorInstant() && (has(Constants::CANPLAYINSTANTSORCERYTOPLIBRARY)
|
||||
|| (controller()->game->inPlay->nb_cards && controller()->game->inPlay->hasAbility(Constants::CANPLAYINSTANTSORCERYTOPLIBRARY))))
|
||||
found++;
|
||||
if((hasSubtype(Subtypes::TYPE_EQUIPMENT) || hasSubtype(Subtypes::TYPE_AURA)) && (has(Constants::CANPLAYAURAEQUIPTOPLIBRARY)
|
||||
|| (controller()->game->inPlay->nb_cards && controller()->game->inPlay->hasAbility(Constants::CANPLAYAURAEQUIPTOPLIBRARY))))
|
||||
found++;
|
||||
|
||||
if(found > 0)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user