| | |
| | | /// 处理塔位的属性攻击 |
| | | /// </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; |