mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
fixed ids for copied abilities
This commit is contained in:
parent
2e21d38416
commit
f2ef2e40e5
6 changed files with 32 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue