From 8787c00ca3eda49410cf9ecf2df53c2061628afd Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 5 Mar 2009 18:48:56 -0600 Subject: *Disable charmed/possessed creature AI. *Use general react states to replace charminfo react states. --HG-- branch : trunk --- src/game/Object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Object.cpp') diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 3952ed12ed4..10eafcba93d 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1601,7 +1601,7 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa pCreature->SetHomePosition(x, y, z, ang); pCreature->Summon(spwtype, despwtime); - if(GetTypeId()==TYPEID_UNIT && ((Creature*)this)->AI()) + if(GetTypeId()==TYPEID_UNIT && ((Creature*)this)->IsAIEnabled) ((Creature*)this)->AI()->JustSummoned(pCreature); if(pCreature->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER && pCreature->m_spells[0]) -- cgit v1.2.3