forked from External/mage
Fixed a bug of Maze's end about checking win condition.
This commit is contained in:
parent
9989070b7e
commit
4f291eb05a
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue