diff options
author | Trazom62 <none@none> | 2010-05-06 21:07:20 +0200 |
---|---|---|
committer | Trazom62 <none@none> | 2010-05-06 21:07:20 +0200 |
commit | 0d06050eb409c2b14dff199379ad89551bcdd93f (patch) | |
tree | 8c0b0588d3ef3d4c83421b60591be05d13e37d81 /src | |
parent | c7c6a11ed6cff1d9d388f620d94f4e38746b5cbd (diff) |
Fix Beacon Of Light: not applying when not in LoS. Patch by beberlescaraber (adapted to latest rev).
Fixes issue #921.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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; |