From 59a1a19d4a00fa71e424fd42453b43bb2579f909 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Tue, 18 Apr 2023 22:21:26 +0400 Subject: [PATCH] Summon boat for real boats only --- lib/spells/AdventureSpellMechanics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spells/AdventureSpellMechanics.cpp b/lib/spells/AdventureSpellMechanics.cpp index eeceb1521..5e5a07312 100644 --- a/lib/spells/AdventureSpellMechanics.cpp +++ b/lib/spells/AdventureSpellMechanics.cpp @@ -185,7 +185,7 @@ ESpellCastResult SummonBoatMechanics::applyAdventureEffects(SpellCastEnvironment if(obj && obj->ID == Obj::TRANSPORT) { const auto * b = dynamic_cast(obj); - if(b->hero) + if(b->hero || b->layer != EPathfindingLayer::SAIL) continue; //we're looking for unoccupied boat double nDist = b->pos.dist2d(parameters.caster->getHeroCaster()->visitablePos());