mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Add IsDungeonBoss
This commit is contained in:
@@ -234,6 +234,18 @@ namespace LuaCreature
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the [Creature]'s flags_extra includes Dungeon Boss (0x1000000),
|
||||
* and returns `false` otherwise.
|
||||
*
|
||||
* @return bool isDungeonBoss
|
||||
*/
|
||||
int IsDungeonBoss(lua_State* L, Creature* creature)
|
||||
{
|
||||
Eluna::Push(L, creature->IsDungeonBoss());
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the [Creature]'s rank is Boss,
|
||||
* and returns `false` otherwise.
|
||||
|
||||
Reference in New Issue
Block a user