mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Add GetAttackDelay to lua's NPC API
This commit is contained in:
parent
17c45c8d36
commit
2f129da08a
@ -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)
|
||||
|
||||
@ -111,6 +111,7 @@ public:
|
||||
int GetSpellFocusHeal();
|
||||
float GetSlowMitigation();
|
||||
float GetAttackSpeed();
|
||||
int GetAttackDelay();
|
||||
int GetAccuracyRating();
|
||||
int GetSpawnKillCount();
|
||||
int GetScore();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user