238 {
240 return true;
241
243 if (bounds.first == bounds.second)
244 return false;
245
246 for (auto pair = bounds.first; pair != bounds.second; ++pair)
247 {
249 if (!skill)
250 return false;
251
253 {
254 std::string_view skillName = skill->
name[i];
255 std::string_view spellName = info->SpellName[i];
256
257 if ((text.length() == (skillName.length() + 2 + spellName.length())) &&
258 (text.substr(0, skillName.length()) == skillName) &&
259 (text.substr(skillName.length(), 2) == ": ") &&
260 (text.substr(skillName.length() + 2) == spellName))
261 return true;
262 }
263 }
264 return false;
265 }
@ TOTAL_LOCALES
Definition: Common.h:76
std::uint8_t uint8
Definition: Define.h:109
DBCStorage< SkillLineEntry > sSkillLineStore(SkillLinefmt)
#define sSpellMgr
Definition: SpellMgr.h:825
std::pair< SkillLineAbilityMap::const_iterator, SkillLineAbilityMap::const_iterator > SkillLineAbilityMapBounds
Definition: SpellMgr.h:584
Definition: Hyperlinks.cpp:105
Definition: DBCStructure.h:1583
char const * name[16]
Definition: DBCStructure.h:1587