- Duelist's Heritage will no longer give an opponent's creature Double-Strike. (JayDi85)

This commit is contained in:
Jeff 2020-07-16 09:59:48 -05:00 committed by jeffwadsworth
parent ddf007e6f1
commit 6b26c40d1d

View file

@ -70,6 +70,13 @@ class DuelistsHeritageTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
// AI workaround to disable it on opponent's attacks - JayDi85
if (game.getCombat().getAttackingPlayerId().equals(this.getControllerId())) {
this.addCustomOutcome(Outcome.Benefit);
} else {
this.addCustomOutcome(Outcome.AIDontUseIt);
}
return !game.getCombat().getAttackers().isEmpty();
}