| | |
| | | |
| | | if (agent.isDead) continue; |
| | | |
| | | agent.addSpeedSlowRate(0.25f); |
| | | agent.PlayOnHitImmediately(); |
| | | EndlessGameUI.instance.generateBloodText(agent.position, damage); |
| | | agent.TakeDamage(damage, agent.position, alignmentProvider); |
| | | if (agent.AgentType == SpawnAgentType.Normal) |
| | | { |
| | | agent.addSpeedSlowRate(0.15f); |
| | | agent.PlayOnHitImmediately(); |
| | | EndlessGameUI.instance.generateBloodText(agent.position, damage); |
| | | agent.TakeDamage(damage, agent.position, alignmentProvider); |
| | | } |
| | | else if (agent.AgentType == SpawnAgentType.BubbleBomb) |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessBossSkillBubbleBombGetHit, (agent as BubbleBombAgent).Id); |
| | | } |
| | | } |
| | | |