mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
fix: attack ability trigger for opponent creatures (#7697)
The checkTrigger of ZurzothChaosRiderAttackAbility wasn't filtering creatures controlled by Zurzoth's controller
This commit is contained in:
parent
fbe6e490e9
commit
ad91a4ccad
1 changed files with 2 additions and 1 deletions
|
@ -121,6 +121,7 @@ class ZurzothChaosRiderAttackAbility extends TriggeredAbilityImpl {
|
||||||
.stream()
|
.stream()
|
||||||
.map(game::getPermanent)
|
.map(game::getPermanent)
|
||||||
.filter(Objects::nonNull)
|
.filter(Objects::nonNull)
|
||||||
|
.filter(permanent -> permanent.isControlledBy(this.getControllerId()))
|
||||||
.filter(permanent -> permanent.hasSubtype(SubType.DEVIL, game))
|
.filter(permanent -> permanent.hasSubtype(SubType.DEVIL, game))
|
||||||
.map(MageItem::getId)
|
.map(MageItem::getId)
|
||||||
.map(game.getCombat()::getDefenderId)
|
.map(game.getCombat()::getDefenderId)
|
||||||
|
@ -131,7 +132,7 @@ class ZurzothChaosRiderAttackAbility extends TriggeredAbilityImpl {
|
||||||
if (playerIds.isEmpty()) {
|
if (playerIds.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
playerIds.add(getControllerId());
|
playerIds.add(this.getControllerId());
|
||||||
this.getEffects().clear();
|
this.getEffects().clear();
|
||||||
this.addEffect(new ZurzothChaosRiderEffect(playerIds));
|
this.addEffect(new ZurzothChaosRiderEffect(playerIds));
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue