mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[7750] Get level/health critters data from Db instead hardcoded values.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
75c98dd2b1
commit
56401e1494
2 changed files with 2 additions and 4 deletions
|
|
@ -5971,9 +5971,7 @@ 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->SetMaxHealth(1);
|
critter->SelectLevel(critter->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
|
||||||
critter->SetHealth(1);
|
|
||||||
critter->SetLevel(1);
|
|
||||||
|
|
||||||
// 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 "7749"
|
#define REVISION_NR "7750"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue