1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge remote-tracking branch 'remotes/FeniksFire/develop' into develop

This commit is contained in:
AlexVinS
2017-08-19 00:37:32 +03:00

View File

@@ -322,7 +322,10 @@ ESpellCastResult DimensionDoorMechanics::applyAdventureEffects(const SpellCastEn
{
SetMovePoints smp;
smp.hid = parameters.caster->id;
smp.val = std::max<ui32>(0, parameters.caster->movement - movementCost);
if(movementCost < parameters.caster->movement)
smp.val = parameters.caster->movement - movementCost;
else
smp.val = 0;
env->sendAndApply(&smp);
}
return ESpellCastResult::OK;