[Spells] Eye of Zomm will now despawn and stack properly (#1849)

* [Spells] Eye of Zomm stop chain spawning

No more chain spawning.

* [Spells] Eye of Zomm stop chain spawning

* [Spells] Eye of Zomm update
This commit is contained in:
KayenEQ
2021-11-27 12:11:23 -05:00
committed by GitHub
parent 6a28828e08
commit 8688e9c9fa
5 changed files with 21 additions and 3 deletions
+10 -2
View File
@@ -4440,9 +4440,17 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
case SE_EyeOfZomm:
{
if (IsClient())
{
CastToClient()->SetControlledMobId(0);
{
NPC* tmp_eye_of_zomm = entity_list.GetNPCByID(CastToClient()->GetControlledMobId());
//On live there is about a 6 second delay before it despawns once new one spawns.
if (tmp_eye_of_zomm) {
tmp_eye_of_zomm->GetSwarmInfo()->duration->Disable();
tmp_eye_of_zomm->GetSwarmInfo()->duration->Start(6000);
tmp_eye_of_zomm->DisableSwarmTimer();
tmp_eye_of_zomm->StartSwarmTimer(6000);
}
CastToClient()->SetControlledMobId(0);
}
}
case SE_Weapon_Stance: