fixed ids for copied abilities

This commit is contained in:
BetaSteward 2011-09-27 22:27:03 -04:00
parent 2e21d38416
commit f2ef2e40e5
6 changed files with 32 additions and 1 deletions

View file

@ -123,6 +123,13 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
}
@Override
public void newOriginalId() {
this.id = UUID.randomUUID();
this.originalId = id;
getEffects().newId();
}
@Override
public AbilityType getAbilityType() {
return this.abilityType;
}