chenxin
2020-12-12 0cea50e11c3a6d1e247e60dc02e7bf2569a3b5f1
Assets/Scripts/TowerDefense/Level/AgentInsManager.cs
@@ -961,16 +961,16 @@
            Agent eag = listAg[ti];
            if (eag == ag) continue;
            Vector3 fpos = eag.transform.position;
            tpos.y = 0;
            fpos.y = 0;
            if (Vector3.Distance(tpos, fpos) > 12) continue;
            if (eag.AgentType == SpawnAgentType.BubbleBomb)
            {
                EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessBossSkillBubbleBombGetHit, (eag as BubbleBombAgent).Id);
            }
            else
            {
                Vector3 fpos = eag.transform.position;
                tpos.y = 0;
                fpos.y = 0;
                if (Vector3.Distance(tpos, fpos) < 12)
                {
                    eag.TakeDamage(damage, fpos, null);
                    if (!eag.opponentAgent)
@@ -982,7 +982,6 @@
                    }
                    if (eag.isDead)
                        ++deathCount;
                }
            }
        }