mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
[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:
+10
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user