Added GetMeleeMitigation() to Perl and Lua for Mobs (Clients/NPCs).

This commit is contained in:
Kinglykrab
2015-12-21 15:43:56 -05:00
parent c168d7b7b6
commit 9a1271805a
6 changed files with 47 additions and 1 deletions
+7 -1
View File
@@ -1976,6 +1976,11 @@ bool Lua_Mob::IsAmnesiad() {
return self->IsAmnesiad();
}
int32 Lua_Mob::GetMeleeMitigation() {
Lua_Safe_Call_Int();
return self->GetMeleeMitigation();
}
luabind::scope lua_register_mob() {
return luabind::class_<Lua_Mob, Lua_Entity>("Mob")
.def(luabind::constructor<>())
@@ -2317,7 +2322,8 @@ luabind::scope lua_register_mob() {
.def("IsPet", (bool(Lua_Mob::*)(void))&Lua_Mob::IsPet)
.def("HasPet", (bool(Lua_Mob::*)(void))&Lua_Mob::HasPet)
.def("IsSilenced", (bool(Lua_Mob::*)(void))&Lua_Mob::IsSilenced)
.def("IsAmnesiad", (bool(Lua_Mob::*)(void))&Lua_Mob::IsAmnesiad);
.def("IsAmnesiad", (bool(Lua_Mob::*)(void))&Lua_Mob::IsAmnesiad)
.def("GetMeleeMitigation", (int32(Lua_Mob::*)(void))&Lua_Mob::GetMeleeMitigation);
}
luabind::scope lua_register_special_abilities() {