mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
fixed player becoming monarch incorrectly triggering things when they're already the monarch
fixes #3527
This commit is contained in:
parent
66ff9c43c1
commit
f7ba5716e9
1 changed files with 3 additions and 0 deletions
|
|
@ -2938,6 +2938,9 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
|
||||
@Override
|
||||
public void setMonarchId(Ability source, UUID monarchId) {
|
||||
if (monarchId == getMonarchId()) { // Nothing happens if you're already the monarch
|
||||
return;
|
||||
}
|
||||
Player newMonarch = getPlayer(monarchId);
|
||||
if (getMonarchId() == null) {
|
||||
getState().addDesignation(new Monarch(), this, monarchId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue