-fixed bug with elvish promenade (and various instants/sorceries)
-Fixed bug with some auras that wouldn't go to graveyard in some conditions
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-19 06:42:00 +00:00
parent 9b263eaee1
commit cca8d0f600
9 changed files with 75 additions and 36 deletions

View File

@@ -79,6 +79,7 @@ void AIPlayer::tapLandsForMana(ManaCost * potentialMana, ManaCost * cost){
if (amp){
MTGCardInstance * card = amp->source;
if (!used[card] && amp->isReactingToClick(card) && amp->output->getConvertedCost()==1){
used[card] = true;
int doTap = 1;
for (int i=Constants::MTG_NB_COLORS-1; i>= 0; i--){
if (diff->getCost(i) && amp->output->getCost(i) ){
@@ -90,7 +91,6 @@ void AIPlayer::tapLandsForMana(ManaCost * potentialMana, ManaCost * cost){
if (doTap){
AIAction * action = NEW AIAction(amp,card);
clickstream.push(action);
used[card] = true;
}
}
}
@@ -147,8 +147,8 @@ int AIAction::getEfficiency(){
}
//Can't handle sacrifice costs that require a target yet :(
if (a->cost){
ExtraCosts * ec = a->cost->extraCosts;
if (ability->cost){
ExtraCosts * ec = ability->cost->extraCosts;
if (ec){
for (size_t i = 0; i < ec->costs.size(); i++){
if (ec->costs[i]->tc) return 0;