mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +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()
|
||||
.map(game::getPermanent)
|
||||
.filter(Objects::nonNull)
|
||||
.filter(permanent -> permanent.isControlledBy(this.getControllerId()))
|
||||
.filter(permanent -> permanent.hasSubtype(SubType.DEVIL, game))
|
||||
.map(MageItem::getId)
|
||||
.map(game.getCombat()::getDefenderId)
|
||||
|
@ -131,7 +132,7 @@ class ZurzothChaosRiderAttackAbility extends TriggeredAbilityImpl {
|
|||
if (playerIds.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
playerIds.add(getControllerId());
|
||||
playerIds.add(this.getControllerId());
|
||||
this.getEffects().clear();
|
||||
this.addEffect(new ZurzothChaosRiderEffect(playerIds));
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue