mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[6948] Fixed unattackable NPC summoned pets.
Not set player's pet only UNIT_FLAG_PVP_ATTACKABLE flag for creature's pets. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
3488c1fee3
commit
82c94b4101
4 changed files with 9 additions and 4 deletions
|
|
@ -764,7 +764,6 @@ bool Pet::CreateBaseAtCreature(Creature* creature)
|
|||
SetUInt32Value(UNIT_FIELD_PET_NAME_TIMESTAMP, 0);
|
||||
SetUInt32Value(UNIT_FIELD_PETEXPERIENCE, 0);
|
||||
SetUInt32Value(UNIT_FIELD_PETNEXTLEVELEXP, uint32((MaNGOS::XP::xp_to_level(creature->getLevel()))/4));
|
||||
SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
|
||||
SetUInt32Value(UNIT_NPC_FLAGS, 0);
|
||||
|
||||
CreatureFamilyEntry const* cFamily = sCreatureFamilyStore.LookupEntry(creature->GetCreatureInfo()->family);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue