chenxin
2020-12-02 98a535c132dc9aaa1a3bb9cffc9814c147a25b38
Assets/Scripts/TowerDefense/Towers/Projectiles/BallisticAttack.cs
@@ -206,17 +206,16 @@
        /// 处理塔位的属性攻击
        /// </summary>
        /// <param name="enemy"></param>
        /// <param name="attid"></param>
        protected void ProcessTowerAttributeAttack(Targetable enemy, float damage, int attid)
        /// <param name="elfId">精灵Id</param>
        protected void ProcessTowerAttributeAttack(Targetable enemy, float damage, int elfId)
        {
            int id = (int)Math.Floor(attid / 10000.0f);
            switch (id)
            switch (elfId)
            {
                case 2:  // 减速.
                case 201:  // 减速.
                    SlowDown slowDown = (SlowDown)EndlessBuffManager.instance.GetBuffInstanceByType(EndlessBuffEffectType.SlowDown);
                    (enemy as Agent).addSpeedSlowRate(0.15f + (slowDown != null ? slowDown.GetSlowDownAdd(TowerPtr.ElfId) : 0));
                    break;
                case 3:  // 中毒
                case 301:  // 中毒
                    // enemy.poisonAgent(damage, attid);
                    // enemy.SetTargetableMatColor(Color.green);
                    break;