aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-05-06 21:07:20 +0200
committerTrazom62 <none@none>2010-05-06 21:07:20 +0200
commit0d06050eb409c2b14dff199379ad89551bcdd93f (patch)
tree8c0b0588d3ef3d4c83421b60591be05d13e37d81
parentc7c6a11ed6cff1d9d388f620d94f4e38746b5cbd (diff)
Fix Beacon Of Light: not applying when not in LoS. Patch by beberlescaraber (adapted to latest rev).
Fixes issue #921. --HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp11
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;