aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-04 17:25:13 -0500
committermegamage <none@none>2009-05-04 17:25:13 -0500
commite478030b06802c531936fb9b2379defeb98f682f (patch)
tree391bb791011210e86dcd5cd53ab65353371b8725 /src
parentc1b88ee8620fc3d50469fa1f2a8cef17697708bf (diff)
[7754] Set NPC flags from DB for mini-pets (summoned critters). Author: daveh
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index bf5bf86db6e..9aa3a938727 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3293,6 +3293,7 @@ void Spell::EffectSummonType(uint32 i)
//summon->InitPetCreateSpells(); // e.g. disgusting oozeling has a create spell as summon...
summon->SelectLevel(summon->GetCreatureInfo()); // some summoned creaters have different from 1 DB data for level/hp
+ summon->SetUInt32Value(UNIT_NPC_FLAGS, summon->GetCreatureInfo()->npcflag);
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);