added myzones & oppzones

This commit is contained in:
Anthony Calosa
2016-08-19 18:08:25 +08:00
parent 4d381452b5
commit c90f357bff
2 changed files with 29 additions and 0 deletions

View File

@@ -87539,6 +87539,17 @@ mana={1}{W}
type=Instant type=Instant
[/card] [/card]
[card] [card]
name=Rayne, Academy Chancellor
auto=this(auras >= 1) transforms((,newability[@targeted(*|mybattlefield) from(*|oppzones):draw:2]))
auto=this(auras < 1) transforms((,newability[@targeted(*|mybattlefield) from(*|oppzones):draw:1]))
text=Whenever you or a permanent you control becomes the target of a spell or ability an opponent controls, you may draw a card. You may draw an additional card if Rayne, Academy Chancellor is enchanted.
mana={2}{U}
type=Legendary Creature
subtype=Human Wizard
power=1
toughness=1
[/card]
[card]
name=Raze name=Raze
auto=destroy target(land) auto=destroy target(land)
text=As an additional cost to cast Raze, sacrifice a land. -- Destroy target land. text=As an additional cost to cast Raze, sacrifice a land. -- Destroy target land.

View File

@@ -216,6 +216,24 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
zones[nbzones++] = MTGGameZone::OPPONENT_HAND; zones[nbzones++] = MTGGameZone::OPPONENT_HAND;
zones[nbzones++] = MTGGameZone::OPPONENT_EXILE; zones[nbzones++] = MTGGameZone::OPPONENT_EXILE;
} }
else if (zoneName.compare("myzones") == 0)
{
zones[nbzones++] = MTGGameZone::MY_BATTLEFIELD;
zones[nbzones++] = MTGGameZone::MY_STACK;
zones[nbzones++] = MTGGameZone::MY_GRAVEYARD;
zones[nbzones++] = MTGGameZone::MY_LIBRARY;
zones[nbzones++] = MTGGameZone::MY_HAND;
zones[nbzones++] = MTGGameZone::MY_EXILE;
}
else if (zoneName.compare("oppzones") == 0)
{
zones[nbzones++] = MTGGameZone::OPPONENT_BATTLEFIELD;
zones[nbzones++] = MTGGameZone::OPPONENT_STACK;
zones[nbzones++] = MTGGameZone::OPPONENT_GRAVEYARD;
zones[nbzones++] = MTGGameZone::OPPONENT_LIBRARY;
zones[nbzones++] = MTGGameZone::OPPONENT_HAND;
zones[nbzones++] = MTGGameZone::OPPONENT_EXILE;
}
else else
{ {
int zone = MTGGameZone::zoneStringToId(zoneName); int zone = MTGGameZone::zoneStringToId(zoneName);