mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed a bug that the destroy effect of All is Dust only effected permanents of the controller of the spell.
This commit is contained in:
parent
13e008f102
commit
d8d3643733
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class AllIsDustEffect extends OneShotEffect<AllIsDustEffect> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
List<Permanent> permanents = game.getBattlefield().getAllActivePermanents(source.getControllerId());
|
List<Permanent> permanents = game.getBattlefield().getActivePermanents(source.getControllerId(), game);
|
||||||
for (Permanent p : permanents) {
|
for (Permanent p : permanents) {
|
||||||
if (!p.getColor().isColorless()) {
|
if (!p.getColor().isColorless()) {
|
||||||
p.sacrifice(source.getSourceId(), game);
|
p.sacrifice(source.getSourceId(), game);
|
||||||
|
|
Loading…
Reference in a new issue