MageSingleton marker interface

This commit is contained in:
magenoxx 2012-07-19 09:29:17 +04:00
parent 60bd1f9585
commit 5b83ffe518
35 changed files with 147 additions and 79 deletions

View file

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