mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Add SendBeginCast to Lua API
This commit is contained in:
parent
b4bab425f5
commit
d36f1159fb
@ -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<EQEmu::CastingSlot>(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<float>(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)
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user