Browse Source

Use existing fn for Speedbook Spellmatching Skill

pull/7991/head
Eric Robinson 1 year ago committed by Stephen C. Wills
parent
commit
e97b1977d8
  1. 2
      Source/panels/spell_list.cpp

2
Source/panels/spell_list.cpp

@ -57,7 +57,7 @@ bool GetSpellListSelection(SpellID &pSpell, SpellType &pSplType)
if (spellListItem.isSelected) {
pSpell = spellListItem.id;
pSplType = spellListItem.type;
if (myPlayer._pClass == HeroClass::Monk && spellListItem.id == SpellID::Search)
if (spellListItem.id == GetPlayerStartingLoadoutForClass(myPlayer._pClass).skill)
pSplType = SpellType::Skill;
return true;
}

Loading…
Cancel
Save