mage/Mage.Server.Plugins
draxdyn a7409f3d08 Hold priority on Ctrl+click
In most cases, it is not useful to hold priority after doing something,
since the spell or ability added to the stack can just be performed
beforehand.

Hence, automatically passing priority is the only comfortable setting.

However, in some cases it is useful (chiefly for Infernal Tutor +
Lion's Eye Diamond and similar interaction), and currently players
have to open Preferences, change the option and then change it back
whenever they need to hold priority, which is very annoying.

This change allows to temporarily hold priority by simply holding
Control while performing an action, which solves the issue in a
manner similar to other clients.

A "Hold" indicator next to the spells cast indicator is displayed so
that the user knows his Control key holding was registered.

The code works by adding a new HOLD_PRIORITY player action that causes
the automatic priority pass options to be ignored until the player is
given priority again.

The client sends the message whenever it's not already holding priority
and Ctrl+click/space/enter happens anywhere.

This is somewhat "loose" as it means that Ctrl+click on the background
also holds priority, but this might actually be desirable and it greatly
simplifies the code, since only a global AWT event listener is required,
and there is no need to change every place in the code that could add
something to the stack.

It is also possible to hold priority and stop holding priority using
the context menu.
2016-06-29 19:57:45 +02:00
..
Mage.Deck.Constructed Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Deck.Limited Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Game.CommanderDuel Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Game.CommanderFreeForAll Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Game.FreeForAll Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Game.MomirDuel Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Game.TinyLeadersDuel Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Game.TwoPlayerDuel Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Player.AI Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Player.AI.DraftBot Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Player.AI.MA Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Player.AIMCTS Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Player.AIMinimax Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Player.Human Hold priority on Ctrl+click 2016-06-29 19:57:45 +02:00
Mage.Tournament.BoosterDraft spjspj - Add Rich Man Cube draft. This is a variation on the Rich Man set draft. It still (like cube) shouldn't let there be more than one copy of a card in the draft but will give each player a new pack from the cards that haven't been picked already each time. Allows 2 player cube drafts to be playable. 2016-06-26 12:57:52 +10:00
Mage.Tournament.Constructed Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
Mage.Tournament.Sealed Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00
pom.xml Xmage 1.4.12v0 2016-05-29 10:59:39 +02:00