mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
MageSingleton marker interface
This commit is contained in:
parent
60bd1f9585
commit
5b83ffe518
35 changed files with 147 additions and 79 deletions
|
|
@ -116,7 +116,9 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
|
||||
@Override
|
||||
public void newId() {
|
||||
this.id = UUID.randomUUID();
|
||||
if (!(this instanceof MageSingleton)) {
|
||||
this.id = UUID.randomUUID();
|
||||
}
|
||||
getEffects().newId();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue