Add getspellname(spell_id) to Perl/Lua.

This commit is contained in:
Alex
2020-03-31 19:48:44 -04:00
parent 3a7908b1de
commit ceb8b31bc0
4 changed files with 32 additions and 0 deletions
+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())