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:
@@ -6528,6 +6528,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
|||||||
return false;
|
return false;
|
||||||
// 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()))
|
||||||
|
{
|
||||||
|
if (beaconTarget->IsWithinLOSInMap(pVictim))
|
||||||
{
|
{
|
||||||
basepoints0 = damage;
|
basepoints0 = damage;
|
||||||
triggered_spell_id = 53654;
|
triggered_spell_id = 53654;
|
||||||
@@ -6535,6 +6537,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Judgements of the Wise
|
// Judgements of the Wise
|
||||||
|
|||||||
Reference in New Issue
Block a user