diff --git a/zone/lua_mob.cpp b/zone/lua_mob.cpp index e59357ebf..190db1f18 100644 --- a/zone/lua_mob.cpp +++ b/zone/lua_mob.cpp @@ -823,6 +823,11 @@ bool Lua_Mob::SpellFinished(int spell_id, Lua_Mob target, int slot, int mana_use return self->SpellFinished(spell_id, target, static_cast(slot), mana_used, inventory_slot, resist_adjust, proc); } +void Lua_Mob::SendBeginCast(int spell_id, int cast_time) { + Lua_Safe_Call_Void(); + self->SendBeginCast(spell_id, cast_time); +} + void Lua_Mob::SpellEffect(Lua_Mob caster, int spell_id, double partial) { Lua_Safe_Call_Void(); self->SpellEffect(caster, spell_id, static_cast(partial)); @@ -2128,6 +2133,7 @@ luabind::scope lua_register_mob() { .def("SpellFinished", (bool(Lua_Mob::*)(int,Lua_Mob,int,int,uint32))&Lua_Mob::SpellFinished) .def("SpellFinished", (bool(Lua_Mob::*)(int,Lua_Mob,int,int,uint32,int))&Lua_Mob::SpellFinished) .def("SpellFinished", (bool(Lua_Mob::*)(int,Lua_Mob,int,int,uint32,int,bool))&Lua_Mob::SpellFinished) + .def("SendBeginCast", &Lua_Mob::SendBeginCast) .def("SpellEffect", &Lua_Mob::SpellEffect) .def("GetPet", &Lua_Mob::GetPet) .def("GetOwner", &Lua_Mob::GetOwner) diff --git a/zone/lua_mob.h b/zone/lua_mob.h index 37bde994a..08502b1a9 100644 --- a/zone/lua_mob.h +++ b/zone/lua_mob.h @@ -181,6 +181,7 @@ public: bool SpellFinished(int spell_id, Lua_Mob target, int slot, int mana_used, uint32 inventory_slot); bool SpellFinished(int spell_id, Lua_Mob target, int slot, int mana_used, uint32 inventory_slot, int resist_adjust); bool SpellFinished(int spell_id, Lua_Mob target, int slot, int mana_used, uint32 inventory_slot, int resist_adjust, bool proc); + void SendBeginCast(int spell_id, int cast_time); void SpellEffect(Lua_Mob caster, int spell_id, double partial); Lua_Mob GetPet(); Lua_Mob GetOwner();