mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Some fireEvent changes
This commit is contained in:
parent
c0866c9ad7
commit
1cb703fbdf
1 changed files with 6 additions and 0 deletions
|
@ -180,6 +180,12 @@ class FalseOrdersUnblockEffect extends OneShotEffect {
|
|||
game.getCombat().addBlockingGroup(permanent.getId(), chosenPermanent.getId(), controller.getId(), game); // 702.21h
|
||||
if (notYetBlocked) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.CREATURE_BLOCKED, chosenPermanent.getId(), null));
|
||||
for (UUID bandedId : chosenPermanent.getBandedCards()) {
|
||||
CombatGroup bandedGroup = game.getCombat().findGroup(bandedId);
|
||||
if (bandedGroup != null && chosenGroup.getBlockers().size() == 1) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.CREATURE_BLOCKED, bandedId, null));
|
||||
}
|
||||
}
|
||||
}
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.BLOCKER_DECLARED, chosenPermanent.getId(), permanent.getId(), permanent.getControllerId()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue