mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/TK): KT Mindcontrol should respect Line of Sight (#19398)
This commit is contained in:
@@ -1140,7 +1140,14 @@ class spell_kaelthas_mind_control : public SpellScript
|
||||
{
|
||||
targets.remove_if(Acore::ObjectGUIDCheck(victim->GetGUID(), true));
|
||||
}
|
||||
targets.remove_if(Acore::ObjectTypeIdCheck(TYPEID_PLAYER, false));
|
||||
|
||||
targets.remove_if([&](WorldObject const* target) -> bool
|
||||
{
|
||||
if (!target->ToPlayer())
|
||||
return true;
|
||||
|
||||
return (!GetCaster()->IsWithinLOSInMap(target));
|
||||
});
|
||||
}
|
||||
|
||||
void HandleEffect(SpellEffIndex /*effIndex*/)
|
||||
|
||||
Reference in New Issue
Block a user