Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 private void ApplyBuffsToTarget(EntityController target)
 {
     if (null == TargetBuffs)
     {
         return;
     }
     for (int loop = 0; loop < TargetBuffs.Length; loop++)
     {
         AbstractBuffInfo buffInfo = TargetBuffs[loop];
         if (null == buffInfo)
         {
             continue;
         }
         AbstractBuff buff = buffInfo.GetBuff();
         buff.Target   = target;
         buff.Attacker = _entityControllerScript;
         target.AddBuff(buff);
     }
 }