mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Only set "Always Yes"/"Always No" for the player's own abilities when using the shortcuts.
This commit is contained in:
@@ -142,7 +142,7 @@ public class KeyboardShortcuts {
|
|||||||
if (si != null && si.isAbility()) {
|
if (si != null && si.isAbility()) {
|
||||||
matchUI.setShouldAutoYield(si.getKey(), true);
|
matchUI.setShouldAutoYield(si.getKey(), true);
|
||||||
int triggerID = Integer.valueOf(si.getSourceTrigger());
|
int triggerID = Integer.valueOf(si.getSourceTrigger());
|
||||||
if (si.isOptionalTrigger()) {
|
if (si.isOptionalTrigger() && matchUI.isLocalPlayer(si.getActivatingPlayer())) {
|
||||||
matchUI.setShouldAlwaysAcceptTrigger(triggerID);
|
matchUI.setShouldAlwaysAcceptTrigger(triggerID);
|
||||||
}
|
}
|
||||||
matchUI.getGameController().passPriority();
|
matchUI.getGameController().passPriority();
|
||||||
@@ -160,7 +160,7 @@ public class KeyboardShortcuts {
|
|||||||
if (si != null && si.isAbility()) {
|
if (si != null && si.isAbility()) {
|
||||||
matchUI.setShouldAutoYield(si.getKey(), true);
|
matchUI.setShouldAutoYield(si.getKey(), true);
|
||||||
int triggerID = Integer.valueOf(si.getSourceTrigger());
|
int triggerID = Integer.valueOf(si.getSourceTrigger());
|
||||||
if (si.isOptionalTrigger()) {
|
if (si.isOptionalTrigger() && matchUI.isLocalPlayer(si.getActivatingPlayer())) {
|
||||||
matchUI.setShouldAlwaysDeclineTrigger(triggerID);
|
matchUI.setShouldAlwaysDeclineTrigger(triggerID);
|
||||||
}
|
}
|
||||||
matchUI.getGameController().passPriority();
|
matchUI.getGameController().passPriority();
|
||||||
|
|||||||
Reference in New Issue
Block a user