From 6ca6f90f67988a9bbd78c6f1bbe370b2dac7107b Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 2 Jan 2017 13:13:12 +0200 Subject: [PATCH] Revert "Fix cmangos classic build" This reverts commit 57214b69c71d6a0d5ff2a353b4e3f8881317fe86. --- UnitMethods.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index c1ccf67..f467945 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2291,11 +2291,7 @@ namespace LuaUnit uint32 spell = Eluna::CHECKVAL(L, 3); bool triggered = Eluna::CHECKVAL(L, 4, false); #ifdef CMANGOS -#ifdef CLASSIC - SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); -#else SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); -#endif #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell); #endif @@ -2432,11 +2428,7 @@ namespace LuaUnit uint32 spellId = Eluna::CHECKVAL(L, 2); Unit* target = Eluna::CHECKOBJ(L, 3); #ifdef CMANGOS -#ifdef CLASSIC - SpellEntry const* spellInfo = GetSpellStore()->LookupEntry(spellId); -#else SpellEntry const* spellInfo = GetSpellStore()->LookupEntry(spellId); -#endif #else SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId); #endif @@ -2678,11 +2670,7 @@ namespace LuaUnit #ifndef TRINITY #ifdef CMANGOS -#ifdef CLASSIC - SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); -#else SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); -#endif #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell); #endif @@ -2755,11 +2743,7 @@ namespace LuaUnit unit->AddThreat(victim, threat, (SpellSchoolMask)schoolMask, spell ? sSpellMgr->GetSpellInfo(spell) : NULL); #else #ifdef CMANGOS -#ifdef CLASSIC - SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); -#else SpellEntry const* spellEntry = GetSpellStore()->LookupEntry(spell); -#endif #else SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell); #endif