Fix Beacon Of Light: not applying when not in LoS. Patch by beberlescaraber (adapted to latest rev).
Fixes issue #921. --HG-- branch : trunk
This commit is contained in:
+7
-4
@@ -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
|
// check if it was heal by paladin which casted this beacon of light
|
||||||
if (Aura const * aura = beaconTarget->GetAura(53563, pVictim->GetGUID()))
|
if (Aura const * aura = beaconTarget->GetAura(53563, pVictim->GetGUID()))
|
||||||
{
|
{
|
||||||
basepoints0 = damage;
|
if (beaconTarget->IsWithinLOSInMap(pVictim))
|
||||||
triggered_spell_id = 53654;
|
{
|
||||||
target = beaconTarget;
|
basepoints0 = damage;
|
||||||
break;
|
triggered_spell_id = 53654;
|
||||||
|
target = beaconTarget;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user