private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { var tower = sender as Obj_AI_Turret; var target = args.Target as Obj_AI_Base; if (tower != null && target != null && target.IsAlly) { var a = new TurretAA(target); TurretAAs.Add(a); Core.DelayAction(() => TurretAAs.Remove(a), 100); } }