aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 8b6250d603e..37a89f4469a 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6839,6 +6839,10 @@ void Spell::EffectSummonDeadPet(uint32 /*i*/)
if(damage < 0)
return;
+ float x,y,z;
+ _player->GetPosition(x, y, z);
+ _player->GetMap()->CreatureRelocation(pet, x, y, z, _player->GetOrientation());
+
pet->SetUInt32Value(UNIT_DYNAMIC_FLAGS, 0);
pet->RemoveFlag (UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
pet->setDeathState( ALIVE );