mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
replaced hacky fix with a better one
This commit is contained in:
parent
92445ace3d
commit
042376d146
1 changed files with 2 additions and 3 deletions
|
@ -275,16 +275,15 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
attackingPermanent.tap(true, game); // to tap with event finally here is needed to prevent abusing of Vampire Envoy like cards
|
||||
}
|
||||
}
|
||||
game.applyEffects();
|
||||
handleBanding(attacker, game);
|
||||
// This can only be used to modify the event, the attack can't be replaced here
|
||||
game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.ATTACKER_DECLARED, group.defenderId, attacker, attackingPlayerId));
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.ATTACKER_DECLARED, group.defenderId, attacker, attackingPlayerId));
|
||||
game.addSimultaneousEvent(GameEvent.getEvent(GameEvent.EventType.ATTACKER_DECLARED, group.defenderId, attacker, attackingPlayerId));
|
||||
}
|
||||
}
|
||||
attackersTappedByAttack.clear();
|
||||
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.DECLARED_ATTACKERS, attackingPlayerId, attackingPlayerId));
|
||||
game.addSimultaneousEvent(GameEvent.getEvent(GameEvent.EventType.DECLARED_ATTACKERS, attackingPlayerId, attackingPlayerId));
|
||||
if (!game.isSimulation()) {
|
||||
Player player = game.getPlayer(attackingPlayerId);
|
||||
if (player != null) {
|
||||
|
|
Loading…
Reference in a new issue