1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

CSpell::canBeCast tweaks

This commit is contained in:
AlexVinS
2017-06-05 21:30:25 +03:00
parent 8c9d6c1c1d
commit 66cfc2fef9
3 changed files with 19 additions and 20 deletions

View File

@@ -337,7 +337,7 @@ void CSpellWindow::computeSpellsPerArea()
spellsCurSite.reserve(mySpells.size());
for(const CSpell * spell : mySpells)
{
if(spell->combatSpell ^ !battleSpellsOnly
if(spell->isCombatSpell() ^ !battleSpellsOnly
&& ((selectedTab == 4) || spell->school.at((ESpellSchool)selectedTab))
)
{