mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add HasSpellEffect() to Perl/Lua (#3319)
* [Quest API] Add HasSpellEffect() to Perl/Lua # Perl - Add `$mob->HasSpellEffect(effect_id)`. # Lua - Add `mob:HasSpellEffect(effect_id)`. # Notes - Allows operators to see if a Mob has an effect ID from any of their buffs. * Update mob.cpp
This commit is contained in:
@@ -3010,6 +3010,11 @@ luabind::object Lua_Mob::GetBuffSpellIDs(lua_State* L) {
|
||||
return t;
|
||||
}
|
||||
|
||||
bool Lua_Mob::HasSpellEffect(int effect_id) {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->HasSpellEffect(effect_id);
|
||||
}
|
||||
|
||||
luabind::scope lua_register_mob() {
|
||||
return luabind::class_<Lua_Mob, Lua_Entity>("Mob")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -3350,6 +3355,7 @@ luabind::scope lua_register_mob() {
|
||||
.def("HasPet", (bool(Lua_Mob::*)(void))&Lua_Mob::HasPet)
|
||||
.def("HasProcs", &Lua_Mob::HasProcs)
|
||||
.def("HasShieldEquipped", (bool(Lua_Mob::*)(void))&Lua_Mob::HasShieldEquipped)
|
||||
.def("HasSpellEffect", &Lua_Mob::HasSpellEffect)
|
||||
.def("HasTimer", &Lua_Mob::HasTimer)
|
||||
.def("HasTwoHandBluntEquipped", (bool(Lua_Mob::*)(void))&Lua_Mob::HasTwoHandBluntEquipped)
|
||||
.def("HasTwoHanderEquipped", (bool(Lua_Mob::*)(void))&Lua_Mob::HasTwoHanderEquipped)
|
||||
|
||||
Reference in New Issue
Block a user