From 3a826ecfeea9222fdd4f5528a4e5e09eb7a4a2ba Mon Sep 17 00:00:00 2001 From: click Date: Wed, 21 Apr 2010 22:33:20 +0200 Subject: Fix Beacon of Light: make it work when casted on other players (no initial aggro on caster) Fix by Liberate --HG-- branch : trunk --- src/game/SpellAuraEffects.cpp | 5 +++++ src/game/SpellMgr.cpp | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index 8880d3fd057..51c707ea5a8 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -2260,6 +2260,11 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const case 54362: target->CastCustomSpell(triggerSpellId, SPELLVALUE_RADIUS_MOD, (int32)((((float)m_tickNumber / 60) * 0.9f + 0.1f) * 10000), NULL, true, NULL, this); return; + // Beacon of Light + case 53563: + Unit * triggerCaster = (Unit *)(GetBase()->GetOwner()); + triggerCaster->CastSpell(triggerTarget, triggeredSpellInfo, true, 0, this,triggerCaster->GetGUID()); + return; } } diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 5c62fbfc27c..b52811ca220 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3843,6 +3843,9 @@ void SpellMgr::LoadSpellCustomAttr() spellInfo->MaxAffectedTargets = 3; count++; break; + case 53651: + spellInfo->AttributesEx3 |= SPELL_ATTR_EX3_NO_INITIAL_AGGRO; + break; default: break; } -- cgit v1.2.3