1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-02 00:10:22 +02:00

Merge pull request #1078 from Nordsoft91/advspell-mech-fix

[1072] Fix advmap spell mechanics
This commit is contained in:
Andrii Danylchenko 2022-10-22 12:30:34 +03:00 committed by GitHub
commit bae4750e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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