TrinityCore/TrinityCore — pull request #5898 by Elron103 (2012-03-26 16:48:06+00:00)
Title: Core/Spells: Fix DynObject AoE effects for invisible targets e.g. Flare (thx to kandera) closes #3179

## Description

Currently Flare (Spell-ID: 1543) does not work for invisible targets. Invisible targets can move inside the Flare effect without being detected.

This patch fixes it, because the searcher checking for targets does not pass the SpellInfo to the IsValidAttackTarget right now, leading to wrong results.

## Revisions

Trinity: https://github.com/TrinityCore/TrinityCore/commit/f0f68f15a86c5ac0c83c47c6db67786506f8460d
Database: TDB rev. 46

Special thanks to Kandera for function variable change suggestions. :)