aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-03 22:26:53 -0500
committermegamage <none@none>2009-05-03 22:26:53 -0500
commitd2096abe1ccbdfb031ceb9f6a103a7c4f711377a (patch)
tree6bcfecdd5c46093cd1e47ad623af72dacff76917 /src
parentc9b1f94122c37e2f502e1e3b70046beabbb2ff58 (diff)
[7750] Get level/health critters data from Db instead hardcoded values. Author: daveh
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index cd2d57e7c65..e441e2113d2 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3294,9 +3294,7 @@ void Spell::EffectSummonType(uint32 i)
return;
//summon->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as summon...
- summon->SetMaxHealth(1);
- summon->SetHealth(1);
- summon->SetLevel(1);
+ summon->SelectLevel(summon->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);