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

View File

@@ -1968,10 +1968,10 @@ class AThisForEach:public MTGAbility, public NestedAbility{
int matches;
matches = td->match(source);
if (matches > 0) {
if (abilities.size()){
if (abilities.size() > matches){
removeAbilityFromGame();
}
for (int i = 0; i < matches; i++) {
for (int i = 0; i < matches - abilities.size(); i++) {
addAbilityToGame();
}
}