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); }
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); } }