[7750] Get level/health critters data from Db instead hardcoded values. Author: daveh

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-03 22:26:53 -05:00
parent c9b1f94122
commit d2096abe1c
+1 -3
View File
@@ -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);