mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as critter...
|
||||
critter->SetMaxHealth(1);
|
||||
critter->SetHealth(1);
|
||||
critter->SetLevel(1);
|
||||
critter->SelectLevel(critter->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
|
||||
|
||||
// set timer for unsummon
|
||||
int32 duration = GetSpellDuration(m_spellInfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue