removing the rest of the originatingZone code mike added, as we already have this variable as

card->currentZone
This commit is contained in:
omegablast2002@yahoo.com
2011-01-21 21:55:12 +00:00
parent 473abd9814
commit 299bb4f9fa
+5 -5
View File
@@ -324,10 +324,10 @@ int MTGAlternativeCostRule::reactToClick(MTGCardInstance * card)
if (playerMana->canAfford( alternateCost ) ) if (playerMana->canAfford( alternateCost ) )
card->paymenttype = MTGAbility::ALTERNATIVE_COST; card->paymenttype = MTGAbility::ALTERNATIVE_COST;
return reactToClick(card, card->getManaCost()->alternative, player->game->hand, ManaCost::MANA_PAID_WITH_ALTERNATIVE); return reactToClick(card, card->getManaCost()->alternative, ManaCost::MANA_PAID_WITH_ALTERNATIVE);
} }
int MTGAlternativeCostRule::reactToClick(MTGCardInstance * card, ManaCost *alternateCost, MTGGameZone * originatingZone, int alternateCostType){ int MTGAlternativeCostRule::reactToClick(MTGCardInstance * card, ManaCost *alternateCost, int alternateCostType){
Player * player = game->currentlyActing(); Player * player = game->currentlyActing();
ManaCost * playerMana = player->getManaPool(); ManaCost * playerMana = player->getManaPool();
@@ -458,7 +458,7 @@ int MTGBuyBackRule::reactToClick(MTGCardInstance * card)
if (playerMana->canAfford(alternateCost)) if (playerMana->canAfford(alternateCost))
card->paymenttype = MTGAbility::BUYBACK_COST; card->paymenttype = MTGAbility::BUYBACK_COST;
return MTGAlternativeCostRule::reactToClick(card, alternateCost, player->game->hand, ManaCost::MANA_PAID_WITH_BUYBACK); return MTGAlternativeCostRule::reactToClick(card, alternateCost, ManaCost::MANA_PAID_WITH_BUYBACK);
} }
@@ -510,7 +510,7 @@ int MTGFlashBackRule::reactToClick(MTGCardInstance * card)
if ( playerMana->canAfford(alternateCost) ) if ( playerMana->canAfford(alternateCost) )
card->paymenttype = MTGAbility::FLASHBACK_COST; card->paymenttype = MTGAbility::FLASHBACK_COST;
return MTGAlternativeCostRule::reactToClick(card, alternateCost, player->game->graveyard, ManaCost::MANA_PAID_WITH_FLASHBACK); return MTGAlternativeCostRule::reactToClick(card, alternateCost, ManaCost::MANA_PAID_WITH_FLASHBACK);
} }
@@ -568,7 +568,7 @@ int MTGRetraceRule::reactToClick(MTGCardInstance * card)
if (playerMana->canAfford(alternateCost)) if (playerMana->canAfford(alternateCost))
card->paymenttype = MTGAbility::RETRACE_COST; card->paymenttype = MTGAbility::RETRACE_COST;
return MTGAlternativeCostRule::reactToClick(card, alternateCost, player->game->graveyard, ManaCost::MANA_PAID_WITH_RETRACE); return MTGAlternativeCostRule::reactToClick(card, alternateCost, ManaCost::MANA_PAID_WITH_RETRACE);
} }