[7754] Set NPC flags from DB for mini-pets (summoned critters). Author: daveh

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-04 17:25:13 -05:00
parent c1b88ee862
commit e478030b06

View File

@@ -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);