mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add spell cast methods to Lua (#4096)
# Notes - Add `eq.cast_spell(spell_id)` and `eq.self_cast(spell_id)` to Lua. - Lua did not have a `quest::castspell(spell_id)` or `quest::selfcast(spell_id)` equivalent, so this adds them.
This commit is contained in:
@@ -313,12 +313,12 @@ int Perl__getinventoryslotid(std::string identifier)
|
||||
return result;
|
||||
}
|
||||
|
||||
void Perl__castspell(int spell_id, int target_id)
|
||||
void Perl__castspell(uint16 spell_id, uint16 target_id)
|
||||
{
|
||||
quest_manager.castspell(spell_id, target_id);
|
||||
}
|
||||
|
||||
void Perl__selfcast(int spell_id)
|
||||
void Perl__selfcast(uint16 spell_id)
|
||||
{
|
||||
quest_manager.selfcast(spell_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user