fixed Mavren Fein triggering on opponent's attacks (#4023)

This commit is contained in:
Evan Kranzler 2017-09-18 22:22:52 -04:00
parent 06ad8e65ab
commit 96f3896d56

View file

@ -79,7 +79,7 @@ public class MavrenFeinDuskApostle extends CardImpl {
class MavrenFeinDuskApostleTriggeredAbility extends TriggeredAbilityImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nontoken Vampire you control");
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nontoken Vampires you control");
static {
filter.add(new SubtypePredicate(SubType.VAMPIRE));
@ -109,7 +109,7 @@ class MavrenFeinDuskApostleTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) {
for (UUID creatureId : game.getCombat().getAttackers()) {
Permanent creature = game.getPermanent(creatureId);
if (creature != null && filter.match(creature, game)) {
if (creature != null && filter.match(creature, game) && creature.getControllerId().equals(controllerId)) {
return true;
}
}