예제 #1
0
        public AbilityCommandInfo Clone(Unit caster)
        {
            AbilityCommandInfo cCommandInfo = (AbilityCommandInfo)MemberwiseClone();

            cCommandInfo.CommandName = (string)CommandName.Clone();

            cCommandInfo.LastCommand = null;
            cCommandInfo.NextCommand = null;

            if (DamageInfo != null)
            {
                cCommandInfo.DamageInfo = DamageInfo.Clone(caster);
            }

            return(cCommandInfo);
        }