From fba5392f63459e3ec9c8488f7fd8358f1db1b6aa Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Fri, 16 Dec 2016 19:26:32 +0200 Subject: [PATCH] Fix cmangos build --- UnitMethods.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index 7e92971..f467945 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2290,7 +2290,7 @@ namespace LuaUnit Unit* target = Eluna::CHECKOBJ(L, 2, NULL); uint32 spell = Eluna::CHECKVAL(L, 3); bool triggered = Eluna::CHECKVAL(L, 4, false); -#if defined(CMANGOS) && defined(WOTLK) +#ifdef CMANGOS SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell); @@ -2427,7 +2427,7 @@ namespace LuaUnit { uint32 spellId = Eluna::CHECKVAL(L, 2); Unit* target = Eluna::CHECKOBJ(L, 3); -#if defined(CMANGOS) && defined(WOTLK) +#ifdef CMANGOS SpellEntry const* spellInfo = GetSpellStore()->LookupEntry(spellId); #else SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId); @@ -2669,7 +2669,7 @@ namespace LuaUnit bool critical = Eluna::CHECKVAL(L, 5, false); #ifndef TRINITY -#if defined(CMANGOS) && defined(WOTLK) +#ifdef CMANGOS SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell); @@ -2742,7 +2742,7 @@ namespace LuaUnit #ifdef TRINITY unit->AddThreat(victim, threat, (SpellSchoolMask)schoolMask, spell ? sSpellMgr->GetSpellInfo(spell) : NULL); #else -#if defined(CMANGOS) && defined(WOTLK) +#ifdef CMANGOS SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell);