Improved target chooser to allow a multiple selection for player, creature and planeswalkers, now it's possible to use target(player,creature,planeswalkers) as well as target(<variable>player,creature,planeswalkers) and so on. Added abilities for giving exiledeath and handdeath to instant and sorceries (the previous were not working fine), Added ability to identify the cards with Cycling ability as a target, Updated all primitives with cycling ability, fixed all primitives with choose any target ability, Added/fixed primitives from RIX set.
This commit is contained in:
@@ -505,14 +505,16 @@ int MTGCardInstance::totem(bool noregen)
|
||||
int MTGCardInstance::toGrave( bool forced )
|
||||
{
|
||||
Player * p = controller();
|
||||
if (basicAbilities[(int)Constants::EXILEDEATH])
|
||||
if (basicAbilities[(int)Constants::EXILEDEATH] || basicAbilities[(int)Constants::GAINEDEXILEDEATH])
|
||||
{
|
||||
p->game->putInZone(this, p->game->inPlay, owner->game->exile);
|
||||
basicAbilities[(int)Constants::GAINEDEXILEDEATH] = 0;
|
||||
return 1;
|
||||
}
|
||||
if (basicAbilities[(int)Constants::HANDDEATH])
|
||||
if (basicAbilities[(int)Constants::HANDDEATH] || basicAbilities[(int)Constants::GAINEDHANDDEATH])
|
||||
{
|
||||
p->game->putInZone(this, p->game->inPlay, owner->game->hand);
|
||||
basicAbilities[(int)Constants::GAINEDHANDDEATH] = 0;
|
||||
return 1;
|
||||
}
|
||||
if (basicAbilities[(int)Constants::INPLAYDEATH] || basicAbilities[(int)Constants::INPLAYTAPDEATH])
|
||||
|
||||
Reference in New Issue
Block a user