fixed a bug where mana icons were not being removed from mana pool when using extracost types...this happened during the refactor..the mana was changed from engaging the players mana pool which sends those events, into a sort of "bypass everything and just subtract the mana from the pool" you actually WANT to engage the players mana pool, as its directly tied to the events which remove those mana from the pool.

This commit is contained in:
omegablast2002@yahoo.com
2011-02-08 19:20:04 +00:00
parent 80b35e8071
commit 4d28bdd925

View File

@@ -347,9 +347,8 @@ int MTGAlternativeCostRule::reactToClick(MTGCardInstance * card, ManaCost *alter
}
}
//------------------------------------------------------------------------
ManaCost * previousManaPool = NEW ManaCost(playerMana);
int payResult = playerMana->pay(alternateCost);
alternateCost->doPayExtra();
ManaCost * previousManaPool = NEW ManaCost(player->getManaPool());
int payResult = player->getManaPool()->pay(alternateCost);
payResult = alternateCostType;
//if alternate cost has a extra payment thats set, this code pays it.
// the if statement is 100% needed as it would cause a crash on cards that dont have the BuyBack cost.