Only allow IsDungeonBoss for TC/AC

This commit is contained in:
BuildingOutLoud
2021-04-16 10:28:11 -06:00
parent 88bc259151
commit 7b24c69f93

View File

@@ -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,