From 706718b28c8f028d39ec3ca7d3bfefb9f9a62add Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Sat, 16 Jan 2010 19:11:32 +0300 Subject: Fixed some problems with pets, port from tc1, by krz, thx Frankir. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/SpellEffects.cpp') 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 ); -- cgit v1.2.3