diff options
| author | n0n4m3 <none@none> | 2010-01-16 19:11:32 +0300 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2010-01-16 19:11:32 +0300 |
| commit | 706718b28c8f028d39ec3ca7d3bfefb9f9a62add (patch) | |
| tree | 5d77bf0ad56126f028f4635096530112bd082b0a /src/game/SpellEffects.cpp | |
| parent | e031df23fc77716b9e4e10cf6084d1f60ffa11ef (diff) | |
Fixed some problems with pets, port from tc1, by krz, thx Frankir.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 4 |
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 ); |
