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:
@@ -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))
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user