From 6f1e553c83ecbad3018ad6b502e9477ecd7c9197 Mon Sep 17 00:00:00 2001 From: Tikki Date: Fri, 28 May 2021 14:50:03 +0200 Subject: [PATCH] fix(CreatureMethods.h): Added Trinity/AzerothCore guards to SetReactState Signed-off-by: Tikki --- CreatureMethods.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CreatureMethods.h b/CreatureMethods.h index f47d5e1..46b0291 100644 --- a/CreatureMethods.h +++ b/CreatureMethods.h @@ -983,6 +983,7 @@ auto const& threatlist = creature->getThreatManager().getThreatList(); return 0; } +#if defined(TRINITY) || defined(AZEROTHCORE) /** * Sets the [Creature]'s ReactState to `state`. * @@ -995,6 +996,7 @@ auto const& threatlist = creature->getThreatManager().getThreatList(); creature->SetReactState((ReactStates)state); return 0; } +#endif /** * Makes the [Creature] able to fly if enabled.