Eluna create workaround for SetReactState

This commit is contained in:
Rochet2
2014-04-29 22:56:02 +03:00
committed by Foereaper
parent 523e6d50e5
commit 6751208eb2
4 changed files with 20 additions and 25 deletions

View File

@@ -1656,7 +1656,13 @@ struct ElunaCreatureAI : ScriptedAI
void UpdateAI(uint32 diff) OVERRIDE
#endif
{
ScriptedAI::UpdateAI(diff);
#ifdef MANGOS
if (IsCombatMovement())
ScriptedAI::UpdateAI(diff);
#else
if (!me->HasReactState(REACT_PASSIVE))
ScriptedAI::UpdateAI(diff);
#endif
int bind = sEluna->CreatureEventBindings.GetBind(me->GetEntry(), CREATURE_EVENT_ON_AIUPDATE);
if (!bind)
return;