Fixed some problems with pets, port from tc1, by krz, thx Frankir.

--HG--
branch : trunk
This commit is contained in:
n0n4m3 committed 2010-01-16 19:11:32 +03:00
1 parent e031df23fc
commit 706718b28c
4 files changed
+18 -3

No files matched your search

+4
View File
@@ -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 );