mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +00:00
Add GetAttackDelay to lua's NPC API
This commit is contained in:
@@ -428,6 +428,11 @@ float Lua_NPC::GetAttackSpeed() {
|
||||
return self->GetAttackSpeed();
|
||||
}
|
||||
|
||||
int Lua_NPC::GetAttackDelay() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetAttackDelay();
|
||||
}
|
||||
|
||||
int Lua_NPC::GetAccuracyRating() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetAccuracyRating();
|
||||
@@ -550,6 +555,7 @@ luabind::scope lua_register_npc() {
|
||||
.def("GetSpellFocusHeal", (void(Lua_NPC::*)(int))&Lua_NPC::GetSpellFocusHeal)
|
||||
.def("GetSlowMitigation", (int(Lua_NPC::*)(void))&Lua_NPC::GetSlowMitigation)
|
||||
.def("GetAttackSpeed", (float(Lua_NPC::*)(void))&Lua_NPC::GetAttackSpeed)
|
||||
.def("GetAttackDelay", (int(Lua_NPC::*)(void))&Lua_NPC::GetAttackDelay)
|
||||
.def("GetAccuracyRating", (int(Lua_NPC::*)(void))&Lua_NPC::GetAccuracyRating)
|
||||
.def("GetSpawnKillCount", (int(Lua_NPC::*)(void))&Lua_NPC::GetSpawnKillCount)
|
||||
.def("GetScore", (int(Lua_NPC::*)(void))&Lua_NPC::GetScore)
|
||||
|
||||
Reference in New Issue
Block a user