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:
parent
dba0c3cb30
commit
66d4fd88f5
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue