Continuing implementation of Planechase.

This commit is contained in:
spjspj 2018-04-17 02:13:48 +10:00
parent 0ffd895be9
commit 776928c76c
6 changed files with 141 additions and 10 deletions

View file

@ -117,6 +117,11 @@ class HedronFieldsOfAgadeemRestrictionEffect extends RestrictionEffect {
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
if (game.getState().getCurrentPlane() != null) {
if (!game.getState().getCurrentPlane().getName().equalsIgnoreCase("Plane - Hedron Fields of Agadeem")) {
return false;
}
}
return filter.match(permanent, source.getSourceId(), source.getControllerId(), game);
}
}