added support for doubling cube, recoded the curses to follow the rules better, with the exception of 1 which can not quite be supported

Curse of Oblivion moved back to unsupported.
added support for targeting a zone by targeting a player...
any time you have targeted a player, you can access items in thier zones by using 
targetedpersonsZONE
targetedpersonsbattlefield for example...
added "targetedplayer" as a targetchooser and who.
added "mycurses" targetchooser.
added "targetedcurses" word variable.
This commit is contained in:
omegablast2002@yahoo.com
2012-03-15 06:18:08 +00:00
parent d7cef8398f
commit a497ef49c8
9 changed files with 144 additions and 88 deletions

View File

@@ -614,6 +614,7 @@ void GameObserver::gameStateBasedEffects()
for (int i = 0; i < 2; i++)
{
MTGGameZone * zone = players[i]->game->inPlay;
players[i]->curses.clear();
for (int j = zone->nb_cards - 1; j >= 0; j--)
{
MTGCardInstance * card = zone->cards[j];
@@ -634,6 +635,10 @@ void GameObserver::gameStateBasedEffects()
{
card->target->enchanted = true;
}
if (card->playerTarget && card->hasType("curse"))
{
card->playerTarget->curses.push_back(card);
}
///////////////////////////
//reset extracost shadows//
///////////////////////////
@@ -1263,6 +1268,8 @@ int GameObserver::cardClick(MTGCardInstance * card, Targetable * object, bool lo
else
{
result = targetChooser->toggleTarget(clickedPlayer);
if(card)
card->playerTarget = clickedPlayer;
}
if (result == TARGET_OK_FULL)
card = cardWaitingForTargets;