mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[10754] Use UNIT_FIELD_CRITTER for store minipet guid.
Also move related code to Unit and allow summon minipets by creatures. Signed-off-by: VladimirMangos <vladimir@getmangos.com> Also fix creature's totems unsummon at owner remove from world.
This commit is contained in:
parent
f671f09950
commit
92ed528eb9
7 changed files with 35 additions and 45 deletions
|
|
@ -720,7 +720,7 @@ void Pet::Unsummon(PetSaveMode mode, Unit* owner /*= NULL*/)
|
|||
{
|
||||
case MINI_PET:
|
||||
if (p_owner)
|
||||
p_owner->_SetMiniPet(NULL);
|
||||
p_owner->SetMiniPet(NULL);
|
||||
break;
|
||||
case PROTECTOR_PET:
|
||||
case GUARDIAN_PET:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue