forked from External/mage
[CLB] Fix initiativeId not being set when a player first takes the initiative. Added documentation to related functions. For #9010.
This commit is contained in:
parent
fdbca7048a
commit
63aaf44f93
2 changed files with 25 additions and 3 deletions
|
|
@ -515,12 +515,28 @@ public interface Game extends MageItem, Serializable, Copyable<Game> {
|
|||
|
||||
Counters getEnterWithCounters(UUID sourceId);
|
||||
|
||||
/**
|
||||
* Get the UUID of the current player who is the Monarch, or null if nobody has it.
|
||||
*
|
||||
* @return UUID of the Monarch (null if nobody has it).
|
||||
*/
|
||||
UUID getMonarchId();
|
||||
|
||||
void setMonarchId(Ability source, UUID monarchId);
|
||||
|
||||
/**
|
||||
* Get the UUID of the current player who has the initiative, or null if nobody has it.
|
||||
*
|
||||
* @return UUID of the player who currently has the Initiative (null if nobody has it).
|
||||
*/
|
||||
UUID getInitiativeId();
|
||||
|
||||
/**
|
||||
* Function to call for a player to take the initiative.
|
||||
*
|
||||
* @param source The ability granting initiative.
|
||||
* @param initiativeId UUID of the player taking the initiative
|
||||
*/
|
||||
void takeInitiative(Ability source, UUID initiativeId);
|
||||
|
||||
int damagePlayerOrPlaneswalker(UUID playerOrWalker, int damage, UUID attackerId, Ability source, Game game, boolean combatDamage, boolean preventable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue