[Quest API] Add Spell methods to Perl. (#1631)

* [Quest API] Add Spell methods to Perl.
- Add quest::getspell(spell_id) to Perl.
- Add eq.get_spell(spell_id) to Lua.
These methods return a spell object.

Exports $spell object references to spell events.

* Formatting.

* Remove comment.

* Update spdat.cpp

* Amplication typo.

* Fix conflicts.

* Remove repository changes.

* Fix typing.

* Update spell_effects.cpp
This commit is contained in:
Kinglykrab
2021-11-03 17:47:15 -04:00
committed by GitHub
parent 6e26e8953c
commit 17aaab1f9d
61 changed files with 4342 additions and 2117 deletions
+2 -2
View File
@@ -1891,9 +1891,9 @@ void Lua_Mob::WearChange(int material_slot, int texture, uint32 color) {
self->WearChange(material_slot, texture, color);
}
void Lua_Mob::DoKnockback(Lua_Mob caster, uint32 pushback, uint32 pushup) {
void Lua_Mob::DoKnockback(Lua_Mob caster, uint32 push_back, uint32 push_up) {
Lua_Safe_Call_Void();
self->DoKnockback(caster, pushback, pushup);
self->DoKnockback(caster, push_back, push_up);
}
void Lua_Mob::AddNimbusEffect(int effect_id) {