mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-27 22:16:11 +00:00
fix(Core/Scripts): Prevent Judgement of Light from triggering Beacon of Light (#24781)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -2218,12 +2218,18 @@ class spell_pal_light_s_beacon : public AuraScript
|
||||
SPELL_PALADIN_BEACON_OF_LIGHT_AURA,
|
||||
SPELL_PALADIN_BEACON_OF_LIGHT_FLASH,
|
||||
SPELL_PALADIN_BEACON_OF_LIGHT_HOLY,
|
||||
SPELL_PALADIN_HOLY_LIGHT_R1
|
||||
SPELL_PALADIN_HOLY_LIGHT_R1,
|
||||
SPELL_PALADIN_JUDGEMENT_OF_LIGHT_HEAL
|
||||
});
|
||||
}
|
||||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
// Don't proc from Judgement of Light heals — JoL sets originalCaster to
|
||||
// the paladin for combat log, but the heal is actually cast by the attacker.
|
||||
if (eventInfo.GetSpellInfo() && eventInfo.GetSpellInfo()->Id == SPELL_PALADIN_JUDGEMENT_OF_LIGHT_HEAL)
|
||||
return false;
|
||||
|
||||
// Don't proc if the heal target is the beacon target (no double heal)
|
||||
if (GetTarget()->HasAura(SPELL_PALADIN_BEACON_OF_LIGHT_AURA, eventInfo.GetActor()->GetGUID()))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user