Fix TC build

This commit is contained in:
Rochet2
2018-09-08 21:24:46 +03:00
parent a4ef7eeaec
commit eafc146405
3 changed files with 14 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
@@ -1037,9 +1037,12 @@ auto const& threatlist = creature->getThreatManager().getThreatList();
*/
int SetInCombatWithZone(lua_State* /*L*/, Creature* creature)
{
#if defined TRINITY || AZEROTHCORE
#if defined AZEROTHCORE
if (creature->IsAIEnabled)
creature->AI()->DoZoneInCombat();
#elif defined TRINITY
if (creature->IsAIEnabled())
creature->AI()->DoZoneInCombat();
#else
creature->SetInCombatWithZone();
#endif