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:
parent
c32d44190e
commit
750f160276
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user