Skip to content

Commit

Permalink
Update GetAITargetsCount for all cores
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Oct 14, 2023
1 parent 248a4bf commit 41be34f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CMangos/CreatureMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,11 @@ namespace LuaCreature
/**
* Returns the number of [Unit]s in this [Creature]'s threat list.
*
* @return int targetsCount
* @return double targetsCount
*/
int GetAITargetsCount(lua_State* L, Creature* creature)
{
Eluna::Push(L, creature->getThreatManager().getThreatList().size());
Eluna::Push(L, (double)creature->getThreatManager().getThreatList().size());
return 1;
}

Expand Down
4 changes: 2 additions & 2 deletions Mangos/CreatureMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ namespace LuaCreature
/**
* Returns the number of [Unit]s in this [Creature]'s threat list.
*
* @return int targetsCount
* @return double targetsCount
*/
int GetAITargetsCount(lua_State* L, Creature* creature)
{
Expand All @@ -913,7 +913,7 @@ namespace LuaCreature
#elif defined(CMANGOS)
Eluna::Push(L, creature->getThreatManager().getThreatList().size());
#else
Eluna::Push(L, creature->GetThreatManager().getThreatList().size());
Eluna::Push(L, (double)creature->GetThreatManager().getThreatList().size());
#endif
return 1;
}
Expand Down
4 changes: 2 additions & 2 deletions VMangos/CreatureMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ namespace LuaCreature
/**
* Returns the number of [Unit]s in this [Creature]'s threat list.
*
* @return int targetsCount
* @return double targetsCount
*/
int GetAITargetsCount(lua_State* L, Creature* creature)
{
Expand All @@ -854,7 +854,7 @@ namespace LuaCreature
#elif defined(CMANGOS)
Eluna::Push(L, creature->getThreatManager().getThreatList().size());
#else
Eluna::Push(L, creature->GetThreatManager().getThreatList().size());
Eluna::Push(L, (double)creature->GetThreatManager().getThreatList().size());
#endif
return 1;
}
Expand Down

0 comments on commit 41be34f

Please sign in to comment.