mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user