Fix bug with the interaction between thisforeach and upcost that made the cost essentially unpayable.

This commit is contained in:
salmelo16
2010-04-24 14:29:24 +00:00
parent fa4ed3d3f5
commit aa5f091568
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -1968,10 +1968,10 @@ class AThisForEach:public MTGAbility, public NestedAbility{
int matches; int matches;
matches = td->match(source); matches = td->match(source);
if (matches > 0) { if (matches > 0) {
if (abilities.size()){ if (abilities.size() > matches){
removeAbilityFromGame(); removeAbilityFromGame();
} }
for (int i = 0; i < matches; i++) { for (int i = 0; i < matches - abilities.size(); i++) {
addAbilityToGame(); addAbilityToGame();
} }
} }