Ver código fonte

Fix advmap spell mechanics

nordsoft 3 anos atrás
pai
commit
750f160276
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/spells/ISpellMechanics.cpp

+ 1 - 1
lib/spells/ISpellMechanics.cpp

@@ -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);
 	}
 }