Fixed a bug of Maze's end about checking win condition.

This commit is contained in:
LevelX2 2013-06-02 09:35:25 +02:00
parent 9989070b7e
commit 4f291eb05a

View file

@ -113,7 +113,7 @@ class MazesEndEffect extends OneShotEffect<MazesEndEffect> {
@Override
public boolean apply(Game game, Ability source) {
List<String> names = new ArrayList<String>();
for (Permanent permanent : game.getBattlefield().getActivePermanents(source.getControllerId(), game)) {
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(source.getControllerId())) {
if (permanent.hasSubtype("Gate")) {
if (!names.contains(permanent.getName())) {
names.add(permanent.getName());