mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-02 22:03:52 +00:00
[Crash] Fix crash in CastSpell Quest API input cast (#3610)
This commit is contained in:
parent
455eb2e6d9
commit
efb03164c7
@ -878,7 +878,13 @@ bool Lua_Mob::CastSpell(int spell_id, int target_id) {
|
||||
|
||||
bool Lua_Mob::CastSpell(int spell_id, int target_id, int slot) {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->CastSpell(spell_id, target_id, static_cast<EQ::spells::CastingSlot>(slot));
|
||||
|
||||
int cast_slot = 0;
|
||||
if (slot >= 0 || slot <= 23 || slot == 255) {
|
||||
cast_slot = slot;
|
||||
}
|
||||
|
||||
return self->CastSpell(spell_id, target_id, static_cast<EQ::spells::CastingSlot>(cast_slot));
|
||||
}
|
||||
|
||||
bool Lua_Mob::CastSpell(int spell_id, int target_id, int slot, int cast_time) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user