public static InstantEffect Clone(InstantEffect origin) { return(new InstantEffect { hpChange = HpChange.Clone(origin.hpChange), isCleanse = origin.isCleanse }); }
public static PersistEffect Clone(PersistEffect origin) { return(new PersistEffect { time = origin.time, id = origin.id, TickHpChange = HpChange.Clone(origin.TickHpChange), TickPeriod = origin.TickPeriod, // 주의 - 능력치 버프는 강화되는 일 없으리라 생각되므로 얕은 복사 사용 changeAbilities = origin.changeAbilities, increaseStack = origin.increaseStack, maxStack = origin.maxStack, stackAccumulateEffect = StackAccumulateEffect.Clone(origin.stackAccumulateEffect), }); }