mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed Mavren Fein triggering on opponent's attacks (#4023)
This commit is contained in:
parent
06ad8e65ab
commit
96f3896d56
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue