[Bug Fix] Allow Songs to be scribed from scrolls (#2460)

* [Bug Fix] Allow Songs to be scribed from scrolls

Songs weren't capable of being scribed from scrolls because we didn't check for `Song: ` in the name.

Converted old logic to substrings, can probably do it cleaner, but it's better than it was.

Removed extraneous `initiator->IsClient()` calls as `initiator` is **always** a client.

* Fix substr logic.
This commit is contained in:
Kinglykrab
2022-10-11 22:29:54 -04:00
committed by GitHub
parent bc72641eef
commit f3f8a50d3c
3 changed files with 132 additions and 157 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ public:
void changedeity(int deity_id);
void exp(int amt);
void level(int newlevel);
void traindisc(int discipline_tome_item_id);
bool isdisctome(int item_id);
void traindisc(uint32 discipline_tome_item_id);
bool isdisctome(uint32 item_id);
std::string getracename(uint16 race_id);
std::string getspellname(uint32 spell_id);
std::string getskillname(int skill_id);