mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 20:07:56 +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:
@@ -765,6 +765,11 @@ void Perl_NPC_ScaleNPC(NPC* self, uint8 npc_level, bool override_special_abiliti
|
||||
return self->ScaleNPC(npc_level, override_special_abilities);
|
||||
}
|
||||
|
||||
bool Perl_NPC_HasSpecialAbilities(NPC* self) // @categories Script Utility
|
||||
{
|
||||
return self->HasSpecialAbilities();
|
||||
}
|
||||
|
||||
void perl_register_npc()
|
||||
{
|
||||
perl::interpreter perl(PERL_GET_THX);
|
||||
@@ -852,6 +857,7 @@ void perl_register_npc()
|
||||
package.add("GetSwarmTarget", &Perl_NPC_GetSwarmTarget);
|
||||
package.add("GetWaypointMax", &Perl_NPC_GetWaypointMax);
|
||||
package.add("HasAISpellEffect", &Perl_NPC_HasAISpellEffect);
|
||||
package.add("HasSpecialAbilities", &Perl_NPC_HasSpecialAbilities);
|
||||
package.add("HasItem", &Perl_NPC_HasItem);
|
||||
package.add("IsAnimal", &Perl_NPC_IsAnimal);
|
||||
package.add("IsGuarding", &Perl_NPC_IsGuarding);
|
||||
|
||||
Reference in New Issue
Block a user