Added support for all SE_EyeOfZomm and some other small changes

This commit is contained in:
Noudess
2019-10-28 19:48:31 -04:00
parent 194c61a467
commit 566e6ea307
5 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ Copyright (C) 2001-2016 EQEMu Development Team (http://eqemulator.net)
extern QueryServ* QServ;
void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, uint32 duration_override, bool followme, bool sticktarg) {
void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, uint32 duration_override, bool followme, bool sticktarg, uint16 *eye_id) {
//It might not be a bad idea to put these into the database, eventually..
@@ -164,8 +164,8 @@ void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, u
summon_count--;
}
if (IsClient() && spell_id == SPELL_EYE_OF_ZOMM) {
CastToClient()->SetControlledMobId(swarm_pet_npc->GetID());
if (IsClient() && eye_id != nullptr) {
*eye_id = swarm_pet_npc->GetID();
}
//the target of these swarm pets will take offense to being cast on...