From 0d06050eb409c2b14dff199379ad89551bcdd93f Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Thu, 6 May 2010 21:07:20 +0200 Subject: Fix Beacon Of Light: not applying when not in LoS. Patch by beberlescaraber (adapted to latest rev). Fixes issue #921. --HG-- branch : trunk --- src/game/Unit.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 865c95d4d19..35902b684af 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6529,10 +6529,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // check if it was heal by paladin which casted this beacon of light if (Aura const * aura = beaconTarget->GetAura(53563, pVictim->GetGUID())) { - basepoints0 = damage; - triggered_spell_id = 53654; - target = beaconTarget; - break; + if (beaconTarget->IsWithinLOSInMap(pVictim)) + { + basepoints0 = damage; + triggered_spell_id = 53654; + target = beaconTarget; + break; + } } } return false; -- cgit v1.2.3