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
+5 -1
View File
@@ -1561,7 +1561,11 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
char eye_name[64];
snprintf(eye_name, sizeof(eye_name), "Eye_of_%s", caster->GetCleanName());
int duration = CalcBuffDuration(caster, this, spell_id) * 6;
caster->TemporaryPets(spell_id, nullptr, eye_name, duration, false);
uint16 eye_id=0;
caster->TemporaryPets(spell_id, nullptr, eye_name, duration, false, false, &eye_id);
if (eye_id != 0) {
caster->CastToClient()->SetControlledMobId(eye_id);
}
}
break;
}