Example #1
0
 public DamageDoTEntity(DamageDoTEntity buff) : base(buff)
 {
     Damage      = buff.Damage;
     Duration    = buff.Duration;
     DamageType  = buff.DamageType;
     TickTime    = buff.TickTime;
     LastTick    = buff.LastTick;
     DamageModel = buff.DamageModel;
 }
Example #2
0
        private void ApplyDoTToTarget(Attack attack, EntityController target)
        {
            if (!attack.AttackInfo.Damage.IsDoT)
            {
                return;
            }
            DamageDoTEntity dot = new DamageDoTEntity();

            dot.FromAttack(this, _entityControllerScript, target);
            target.AddBuff(dot);
        }