mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
- Duelist's Heritage will no longer give an opponent's creature Double-Strike. (JayDi85)
This commit is contained in:
parent
ddf007e6f1
commit
6b26c40d1d
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue