diff --git a/zone/lua_mob.cpp b/zone/lua_mob.cpp index 851c1293a..768e091db 100644 --- a/zone/lua_mob.cpp +++ b/zone/lua_mob.cpp @@ -1801,6 +1801,11 @@ void Lua_Mob::SetAppearance(int app, bool ignore_self) { self->SetAppearance(static_cast(app), ignore_self); } +void Lua_Mob::SetDestructibleObject(bool set) { + Lua_Safe_Call_Void(); + self->SetDestructibleObject(set); +} + luabind::scope lua_register_mob() { return luabind::class_("Mob") .def(luabind::constructor<>()) @@ -2107,7 +2112,8 @@ luabind::scope lua_register_mob() { .def("ClearSpecialAbilities", (void(Lua_Mob::*)(void))&Lua_Mob::ClearSpecialAbilities) .def("ProcessSpecialAbilities", (void(Lua_Mob::*)(std::string))&Lua_Mob::ProcessSpecialAbilities) .def("SetAppearance", (void(Lua_Mob::*)(int))&Lua_Mob::SetAppearance) - .def("SetAppearance", (void(Lua_Mob::*)(int,bool))&Lua_Mob::SetAppearance); + .def("SetAppearance", (void(Lua_Mob::*)(int,bool))&Lua_Mob::SetAppearance) + .def("SetDestructibleObject", (void(Lua_Mob::*)(bool))&Lua_Mob::SetDestructibleObject); } luabind::scope lua_register_special_abilities() { diff --git a/zone/lua_mob.h b/zone/lua_mob.h index 160fae5ad..cc8ade4f7 100644 --- a/zone/lua_mob.h +++ b/zone/lua_mob.h @@ -342,6 +342,7 @@ public: void ProcessSpecialAbilities(std::string str); void SetAppearance(int app); void SetAppearance(int app, bool ignore_self); + void SetDestructibleObject(bool set); }; #endif