Fix compile

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-06-15 00:27:40 +02:00
parent 8ace1a7250
commit 898b65a6d1
@@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL npc_kyle_frenziedAI : public ScriptedAI
void SpellHit(Unit* pCaster, SpellEntry const* pSpell) void SpellHit(Unit* pCaster, SpellEntry const* pSpell)
{ {
if (!InCombat && !bEvent && pSpell->Id == SPELL_LUNCH) if (!m_creature->isInCombat() && !bEvent && pSpell->Id == SPELL_LUNCH)
{ {
if (pCaster->GetTypeId() == TYPEID_PLAYER) if (pCaster->GetTypeId() == TYPEID_PLAYER)
uiPlayerGUID = pCaster->GetGUID(); uiPlayerGUID = pCaster->GetGUID();