mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-24 10:43:53 +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");
|
||||
#endif
|
||||
// this is cast on self, not on the pet
|
||||
if(GetPet() && GetPet()->IsNPC())
|
||||
{
|
||||
GetPet()->CastToNPC()->GMMove(GetX(), GetY(), GetZ(), GetHeading());
|
||||
Mob *casters_pet = GetPet();
|
||||
if(casters_pet && casters_pet->IsNPC()){
|
||||
casters_pet->CastToNPC()->GMMove(GetX(), GetY(), GetZ(), GetHeading());
|
||||
if (!casters_pet->GetTarget()) {
|
||||
casters_pet->StopNavigation();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user