Eluna change definition checks from mangos to tc

This commit is contained in:
Rochet2
2014-06-29 12:26:16 +03:00
committed by Foereaper
parent c2a3ea5043
commit 1f75dc7843
20 changed files with 181 additions and 181 deletions

View File

@@ -43,7 +43,7 @@ namespace LuaSpell
int GetDuration(lua_State* L, Spell* spell)
{
#ifdef MANGOS
#ifndef TRINITY
Eluna::Push(L, GetSpellDuration(spell->m_spellInfo));
#else
Eluna::Push(L, spell->GetSpellInfo()->GetDuration());
@@ -53,7 +53,7 @@ namespace LuaSpell
int GetTargetDest(lua_State* L, Spell* spell)
{
#ifdef MANGOS
#ifndef TRINITY
if (!(spell->m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION))
return 3;
float x, y, z;
@@ -72,7 +72,7 @@ namespace LuaSpell
int GetTarget(lua_State* L, Spell* spell)
{
#ifdef MANGOS
#ifndef TRINITY
if (GameObject* target = spell->m_targets.getGOTarget())
Eluna::Push(L, target);
else if (Item* target = spell->m_targets.getItemTarget())