mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed The Ozolith not removing counters from itself
This commit is contained in:
parent
859cd15ac8
commit
af104dacf0
1 changed files with 4 additions and 2 deletions
|
@ -171,9 +171,11 @@ class TheOzolithMoveCountersEffect extends OneShotEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
permanent.getCounters(game)
|
permanent.getCounters(game)
|
||||||
|
.copy()
|
||||||
.values()
|
.values()
|
||||||
.stream()
|
.stream()
|
||||||
.forEach(counter -> creature.addCounters(counter, source, game));
|
.filter(counter -> creature.addCounters(counter, source, game))
|
||||||
|
.forEach(counter -> permanent.removeCounters(counter, game));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue