mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Prevent keeping zoom view open when declaring blockers
This commit is contained in:
@@ -143,8 +143,6 @@ public class InputBlock extends InputSyncronizedBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean selectOption(final Card card, final Option option) {
|
public boolean selectOption(final Card card, final Option option) {
|
||||||
boolean hideZoomView = false; //keep zoom open while declaring blockers by default
|
|
||||||
|
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case DECLARE_AS_BLOCKER:
|
case DECLARE_AS_BLOCKER:
|
||||||
combat.addBlocker(currentAttacker, card);
|
combat.addBlocker(currentAttacker, card);
|
||||||
@@ -156,11 +154,10 @@ public class InputBlock extends InputSyncronizedBase {
|
|||||||
break;
|
break;
|
||||||
case BLOCK_THIS_ATTACKER:
|
case BLOCK_THIS_ATTACKER:
|
||||||
setCurrentAttacker(card);
|
setCurrentAttacker(card);
|
||||||
hideZoomView = true; //don't keep zoom open if choosing attacker
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
showMessage();
|
showMessage();
|
||||||
return hideZoomView; //keep zoom open while declaring blockers
|
return true; //hide zoom view after declaring blocker
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user