mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
Blocks this turn ability.
This commit is contained in:
parent
c783cbc41f
commit
1a60504fcc
8 changed files with 307 additions and 14 deletions
|
|
@ -146,13 +146,17 @@ class OdricMasterTacticianEffect extends ReplacementEffectImpl<OdricMasterTactic
|
|||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
//20101001 - 509.1c
|
||||
game.getCombat().checkBlockRequirements(player, game);
|
||||
game.getCombat().checkBlockRequirementsBefore(player, game);
|
||||
for (UUID defenderId : game.getCombat().getPlayerDefenders(game)) {
|
||||
game.getPlayer(source.getControllerId()).selectBlockers(game, defenderId);
|
||||
if (game.isPaused() || game.isGameOver()) {
|
||||
return true;
|
||||
boolean choose = true;
|
||||
while (choose) {
|
||||
game.getPlayer(source.getControllerId()).selectBlockers(game, defenderId);
|
||||
if (game.isPaused() || game.isGameOver()) {
|
||||
return true;
|
||||
}
|
||||
game.getCombat().checkBlockRestrictions(game.getPlayer(defenderId), game);
|
||||
choose = !game.getCombat().checkBlockRequirementsAfter(game.getPlayer(defenderId), player, game);
|
||||
}
|
||||
game.getCombat().checkBlockRestrictions(game.getPlayer(defenderId), game);
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.DECLARED_BLOCKERS, defenderId, defenderId));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue