mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix advmap spell mechanics
This commit is contained in:
parent
c32d44190e
commit
750f160276
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user