From e478030b06802c531936fb9b2379defeb98f682f Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 4 May 2009 17:25:13 -0500 Subject: [7754] Set NPC flags from DB for mini-pets (summoned critters). Author: daveh --HG-- branch : trunk --- src/game/SpellEffects.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3