mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
[Quest API] Add HasSpecialAbilities() to Perl/Lua (#2994)
* [Quest API] Add HasSpecialAbilities() to Perl/Lua # Perl - Add `$mob->HasSpecialAbilities()`. # Lua - Add `mob:HasSpecialAbilities()` # Notes - Allows operators to check if a mob has special abilities * Move to NPC. * Update lua_mob.cpp
This commit is contained in:
@@ -767,6 +767,11 @@ void Lua_NPC::ScaleNPC(uint8 npc_level, bool override_special_abilities)
|
||||
self->ScaleNPC(npc_level, true, override_special_abilities);
|
||||
}
|
||||
|
||||
bool Lua_NPC::HasSpecialAbilities() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->HasSpecialAbilities();
|
||||
}
|
||||
|
||||
luabind::scope lua_register_npc() {
|
||||
return luabind::class_<Lua_NPC, Lua_Mob>("NPC")
|
||||
.def(luabind::constructor<>())
|
||||
|
||||
Reference in New Issue
Block a user