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:
@@ -1356,6 +1356,14 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffIndex effIndex, SpellImplici
|
|||||||
return;
|
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());
|
dest = SpellDestination(x, y, liquidLevel, m_caster->GetOrientation());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user