From c6b9d7364c811825465e82156c56656500ea9a64 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sat, 30 Sep 2017 18:02:21 +0300 Subject: [PATCH] Fix mangos one build --- UnitMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnitMethods.h b/UnitMethods.h index 1b985eb..1c128b8 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2779,7 +2779,11 @@ namespace LuaUnit unit->AddThreat(victim, threat, false, spellEntry ? spellEntry->SchoolMask : SPELL_SCHOOL_MASK_NONE, spellEntry); #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell); +#ifdef CLASSIC unit->AddThreat(victim, threat, false, spellEntry ? GetSchoolMask(spellEntry->School) : SPELL_SCHOOL_MASK_NONE, spellEntry); +#else + unit->AddThreat(victim, threat, false, spellEntry ? static_cast(spellEntry->SchoolMask) : SPELL_SCHOOL_MASK_NONE, spellEntry); +#endif #endif #endif return 0;