fixed player becoming monarch incorrectly triggering things when they're already the monarch

fixes #3527
This commit is contained in:
Evan Kranzler 2017-09-25 20:14:46 -04:00
parent 66ff9c43c1
commit f7ba5716e9

View file

@ -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);