Fix TC build, remove GetCombatTime
This commit is contained in:
@@ -1177,17 +1177,6 @@ namespace LuaUnit
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the [Unit]'s combat timer
|
||||
*
|
||||
* @return uint32 combatTimer
|
||||
*/
|
||||
int GetCombatTime(lua_State* L, Unit* unit)
|
||||
{
|
||||
Eluna::Push(L, unit->GetCombatTimer());
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a table containing friendly [Unit]'s within given range of the [Unit].
|
||||
*
|
||||
@@ -1928,7 +1917,11 @@ namespace LuaUnit
|
||||
*/
|
||||
int ClearThreatList(lua_State* /*L*/, Unit* unit)
|
||||
{
|
||||
#ifdef TRINITY
|
||||
unit->GetThreatManager().ClearAllThreat();
|
||||
#else
|
||||
unit->GetThreatManager().clearReferences();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user