Fixed some primitives from issue #1085 and from Discord channel, fixed all curses primitives and targets, added new keywords "oppotgt" and "ctrltgt" to check wich player has been targeted from a card, fixed an issue on "chooseaname" ability.
This commit is contained in:
@@ -726,7 +726,6 @@ 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];
|
||||
@@ -843,10 +842,6 @@ void GameObserver::gameStateBasedEffects()
|
||||
{
|
||||
card->target->enchanted = true;
|
||||
}
|
||||
if (card->playerTarget && card->hasType("curse"))
|
||||
{
|
||||
card->playerTarget->curses.push_back(card);
|
||||
}
|
||||
|
||||
//704.5n If an Aura is attached to an illegal object or player,
|
||||
//or is not attached to an object or player, that Aura is put into its owner’s graveyard.
|
||||
|
||||
Reference in New Issue
Block a user