mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7754] Set NPC flags from DB for mini-pets (summoned critters).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d351c09f9d
commit
df119a4b59
2 changed files with 3 additions and 1 deletions
|
|
@ -5972,6 +5972,8 @@ void Spell::EffectSummonCritter(uint32 i)
|
||||||
critter->AIM_Initialize();
|
critter->AIM_Initialize();
|
||||||
critter->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as critter...
|
critter->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as critter...
|
||||||
critter->SelectLevel(critter->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
|
critter->SelectLevel(critter->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
|
||||||
|
critter->SetUInt32Value(UNIT_NPC_FLAGS, critter->GetCreatureInfo()->npcflag);
|
||||||
|
// some mini-pets have quests
|
||||||
|
|
||||||
// set timer for unsummon
|
// set timer for unsummon
|
||||||
int32 duration = GetSpellDuration(m_spellInfo);
|
int32 duration = GetSpellDuration(m_spellInfo);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7753"
|
#define REVISION_NR "7754"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue