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

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

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 );