Merge pull request #1012 from EQEmu/getspellname

Add getspellname(spell_id) to Perl/Lua.
This commit is contained in:
Chris Miles authored and GitHub committed 2020-03-31 18:53:20 -05:00
commit 963735e7dd
4 files changed
+32

No files matched your search

+9
View File
@@ -906,6 +906,15 @@ bool QuestManager::isdisctome(int item_id) {
return(true);
}
std::string QuestManager::getspellname(uint32 spell_id) {
if (!IsValidSpell(spell_id)) {
return "INVALID SPELL ID IN GETSPELLNAME";
}
std::string spell_name = GetSpellName(spell_id);
return spell_name;
}
void QuestManager::safemove() {
QuestManagerCurrentQuestVars();
if (initiator && initiator->IsClient())