mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Only allow IsDungeonBoss for TC/AC
This commit is contained in:
@@ -240,15 +240,13 @@ namespace LuaCreature
|
|||||||
*
|
*
|
||||||
* @return bool isDungeonBoss
|
* @return bool isDungeonBoss
|
||||||
*/
|
*/
|
||||||
|
#if defined(TRINITY) || defined(AZEROTHCORE)
|
||||||
int IsDungeonBoss(lua_State* L, Creature* creature)
|
int IsDungeonBoss(lua_State* L, Creature* creature)
|
||||||
{
|
{
|
||||||
#if defined(TRINITY) || defined(AZEROTHCORE)
|
|
||||||
Eluna::Push(L, creature->IsDungeonBoss());
|
Eluna::Push(L, creature->IsDungeonBoss());
|
||||||
#else
|
|
||||||
Eluna::Push(L, creature->IsWorldBoss());
|
|
||||||
#endif
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns `true` if the [Creature]'s rank is Boss,
|
* Returns `true` if the [Creature]'s rank is Boss,
|
||||||
|
|||||||
Reference in New Issue
Block a user