mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Fixed that AI fired targeting event twice (fixes #7094).
This commit is contained in:
parent
dfa035d9dc
commit
2daa5aae50
3 changed files with 1 additions and 14 deletions
|
|
@ -1233,18 +1233,6 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
return true;
|
||||
} // end priorityPlay method
|
||||
|
||||
@Override
|
||||
public boolean activateAbility(ActivatedAbility ability, Game game) {
|
||||
if (!isTestMode()) { // Test player already sends target event as they select the target
|
||||
for (Target target : ability.getModes().getMode().getTargets()) {
|
||||
for (UUID targetId : target.getTargets()) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.TARGETED, targetId, ability, ability.getControllerId()));
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.activateAbility(ability, game);
|
||||
}
|
||||
|
||||
protected void playLand(Game game) {
|
||||
log.debug("playLand");
|
||||
Set<Card> lands = new LinkedHashSet<>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue