Eluna change definition checks from mangos to tc
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user