1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fix advmap spell mechanics

This commit is contained in:
nordsoft 2022-10-20 22:34:27 +04:00
parent c32d44190e
commit 750f160276

View File

@ -776,7 +776,7 @@ std::unique_ptr<IAdventureSpellMechanics> IAdventureSpellMechanics::createMechan
case SpellID::VIEW_AIR: case SpellID::VIEW_AIR:
return make_unique<ViewAirMechanics>(s); return make_unique<ViewAirMechanics>(s);
default: default:
return std::unique_ptr<IAdventureSpellMechanics>(); return s->combat ? std::unique_ptr<IAdventureSpellMechanics>() : make_unique<AdventureSpellMechanics>(s);
} }
} }