rndbot initialization

This commit is contained in:
Yunfan Li
2023-05-26 20:51:42 +08:00
parent edf942c96a
commit 149941403c
5 changed files with 436 additions and 176 deletions

View File

@@ -13,6 +13,10 @@ bool CompareSpells(std::pair<uint32, std::string>& s1, std::pair<uint32, std::st
{
SpellInfo const* si1 = sSpellMgr->GetSpellInfo(s1.first);
SpellInfo const* si2 = sSpellMgr->GetSpellInfo(s2.first);
if (!si1 || !si2) {
LOG_ERROR("playerbots", "SpellInfo missing.");
return false;
}
uint32 p1 = si1->SchoolMask * 20000;
uint32 p2 = si2->SchoolMask * 20000;