mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-30 01:02:26 +00:00
[Bug Fix] Summon Companion causing pets to warps away. (#1972)
* Update spell_effects.cpp * Update spell_effects.cpp
This commit is contained in:
parent
8a48473dbc
commit
872d494bb6
@ -2163,9 +2163,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
snprintf(effect_desc, _EDLEN, "Call Pet");
|
snprintf(effect_desc, _EDLEN, "Call Pet");
|
||||||
#endif
|
#endif
|
||||||
// this is cast on self, not on the pet
|
// this is cast on self, not on the pet
|
||||||
if(GetPet() && GetPet()->IsNPC())
|
Mob *casters_pet = GetPet();
|
||||||
{
|
if(casters_pet && casters_pet->IsNPC()){
|
||||||
GetPet()->CastToNPC()->GMMove(GetX(), GetY(), GetZ(), GetHeading());
|
casters_pet->CastToNPC()->GMMove(GetX(), GetY(), GetZ(), GetHeading());
|
||||||
|
if (!casters_pet->GetTarget()) {
|
||||||
|
casters_pet->StopNavigation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user