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;
|
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,
|
* Returns `true` if the [Creature]'s rank is Boss,
|
||||||
* and returns `false` otherwise.
|
* and returns `false` otherwise.
|
||||||
|
|||||||
@@ -809,6 +809,7 @@ ElunaRegister<Creature> CreatureMethods[] =
|
|||||||
{ "SetEquipmentSlots", &LuaCreature::SetEquipmentSlots },
|
{ "SetEquipmentSlots", &LuaCreature::SetEquipmentSlots },
|
||||||
|
|
||||||
// Boolean
|
// Boolean
|
||||||
|
{ "IsDungeonBoss", &LuaCreature::IsWorldBoss },
|
||||||
{ "IsWorldBoss", &LuaCreature::IsWorldBoss },
|
{ "IsWorldBoss", &LuaCreature::IsWorldBoss },
|
||||||
{ "IsRacialLeader", &LuaCreature::IsRacialLeader },
|
{ "IsRacialLeader", &LuaCreature::IsRacialLeader },
|
||||||
{ "IsCivilian", &LuaCreature::IsCivilian },
|
{ "IsCivilian", &LuaCreature::IsCivilian },
|
||||||
|
|||||||
Reference in New Issue
Block a user