fix(Core/Spells): disable fishing if not in LOS within boober destination. (#6138)

- Closes #5485
- Closes https://github.com/chromiecraft/chromiecraft/issues/471
This commit is contained in:
UltraNix
2021-06-05 23:24:14 +02:00
committed by GitHub
parent dba0c3cb30
commit 66d4fd88f5

View File

@@ -1356,6 +1356,14 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffIndex effIndex, SpellImplici
return;
}
if (!m_caster->IsWithinLOS(x, y, z))
{
SendCastResult(SPELL_FAILED_LINE_OF_SIGHT);
SendChannelUpdate(0);
finish(false);
return;
}
dest = SpellDestination(x, y, liquidLevel, m_caster->GetOrientation());
break;
}