mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
* Fate transfer - Fixed that +1/+1 or -1/-1 counters on target permanent were not applied.
This commit is contained in:
parent
8dad1eeb13
commit
981a27ccbf
2 changed files with 42 additions and 15 deletions
|
|
@ -53,7 +53,6 @@ public class FateTransfer extends CardImpl {
|
|||
super(ownerId, 161, "Fate Transfer", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{U/B}");
|
||||
this.expansionSetCode = "SHM";
|
||||
|
||||
|
||||
// Move all counters from target creature onto another target creature.
|
||||
this.getSpellAbility().addEffect(new FateTransferEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||
|
|
@ -96,9 +95,8 @@ class FateTransferEffect extends OneShotEffect {
|
|||
&& creatureToMoveCountersTo != null) {
|
||||
Permanent copyCreature = creatureToMoveCountersFrom.copy();
|
||||
for (Counter counter : copyCreature.getCounters().values()) {
|
||||
Counter newCounterTest = new Counter(counter.getName(), counter.getCount());
|
||||
creatureToMoveCountersFrom.removeCounters(newCounterTest, game);
|
||||
creatureToMoveCountersTo.addCounters(newCounterTest, game);
|
||||
creatureToMoveCountersFrom.removeCounters(counter, game);
|
||||
creatureToMoveCountersTo.addCounters(counter, game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue