tweaked leylines
This commit is contained in:
@@ -14,11 +14,15 @@ int cardsinhand = game->players[0]->game->hand->nb_cards;
|
||||
Player * currentPlayer = game->currentPlayer;
|
||||
if (!player->game->hand->hasCard(card)) return 0;
|
||||
if ((game->turn < 1) && (cardsinhand != 0) && (card->hasType("leyline"))
|
||||
&& game->currentGamePhase == Constants::MTG_PHASE_FIRSTMAIN
|
||||
&& game->players[0]->game->graveyard->nb_cards == 0
|
||||
&& game->players[0]->game->exile->nb_cards == 0){
|
||||
Player * p = game->currentPlayer;
|
||||
card->owner->game->putInZone(card,p->game->hand,p->game->battlefield);
|
||||
&& game->currentGamePhase == Constants::MTG_PHASE_FIRSTMAIN
|
||||
&& game->players[0]->game->graveyard->nb_cards == 0
|
||||
&& game->players[0]->game->exile->nb_cards == 0){
|
||||
Player * p = game->currentPlayer;
|
||||
if (card->hasType("leyline")){
|
||||
MTGCardInstance * copy = player->game->putInZone(card, player->game->hand, player->game->temp);
|
||||
Spell * spell = NEW Spell(copy);
|
||||
spell->resolve();
|
||||
delete spell;}
|
||||
return 1;}
|
||||
if (card->hasType("land")){
|
||||
if (player == currentPlayer && currentPlayer->canPutLandsIntoPlay && (game->currentGamePhase == Constants::MTG_PHASE_FIRSTMAIN || game->currentGamePhase == Constants::MTG_PHASE_SECONDMAIN)){
|
||||
|
||||
Reference in New Issue
Block a user