[7750] Get level/health critters data from Db instead hardcoded values. Author: daveh
--HG-- branch : trunk
This commit is contained in:
@@ -3294,9 +3294,7 @@ void Spell::EffectSummonType(uint32 i)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//summon->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as summon...
|
//summon->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as summon...
|
||||||
summon->SetMaxHealth(1);
|
summon->SelectLevel(summon->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
|
||||||
summon->SetHealth(1);
|
|
||||||
summon->SetLevel(1);
|
|
||||||
|
|
||||||
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user