Fix TC build, remove GetCombatTime

This commit is contained in:
Rochet2
2018-01-06 00:28:30 +02:00
parent d9415332bb
commit 5b9743025b
4 changed files with 27 additions and 16 deletions

View File

@@ -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;
}