mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* Vorel of the Hull Clade - Fixed the bug, that only always one new counter was put on the target permanent of any type of counter that was already on the permanent instead of the amount that was already on the permanent before.
This commit is contained in:
parent
6117646bcc
commit
c26a081f93
1 changed files with 4 additions and 7 deletions
|
@ -28,10 +28,6 @@
|
||||||
package mage.sets.dragonsmaze;
|
package mage.sets.dragonsmaze;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.constants.Outcome;
|
|
||||||
import mage.constants.Rarity;
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
@ -39,6 +35,9 @@ import mage.abilities.costs.common.TapSourceCost;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.Rarity;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.counters.Counter;
|
import mage.counters.Counter;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
|
@ -111,9 +110,8 @@ class VorelOfTheHullCladeEffect extends OneShotEffect<VorelOfTheHullCladeEffect>
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (Counter counter : target.getCounters().values()) {
|
for (Counter counter : target.getCounters().values()) {
|
||||||
Counter newCounter = new Counter(counter.getName(), 1);
|
Counter newCounter = new Counter(counter.getName(), counter.getCount());
|
||||||
target.addCounters(newCounter, game);
|
target.addCounters(newCounter, game);
|
||||||
System.out.println("The target and counter type added is " + target.getName() + counter.getName());
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -124,4 +122,3 @@ class VorelOfTheHullCladeEffect extends OneShotEffect<VorelOfTheHullCladeEffect>
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue