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:
LevelX2 2013-02-11 19:04:34 +01:00
parent 13e008f102
commit d8d3643733

View file

@ -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);