diff options
author | megamage <none@none> | 2009-04-11 12:01:27 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-11 12:01:27 -0500 |
commit | f4d69d1b3b8fe6d26195b14f0ec2133b872c735c (patch) | |
tree | 5db77ed528332523d3db4071810ea4d09aa177ae /src/game/Unit.cpp | |
parent | c9005f636eb41a7f88400c6925eb2c5d47bf4c9f (diff) | |
parent | 2e0ffba0bcea53f8b5ce15a51174c34cbc55d202 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c287cb1a033..88155b4be51 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5834,6 +5834,34 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger basepoints0 = GetAttackTime(BASE_ATTACK) * int32(ap*0.022f + 0.044f * holy) / 1000; break; } + // Light's Beacon - Beacon of Light + if ( dummySpell->Id == 53651 ) + { + if (Unit * caster = triggeredByAura->GetCaster()) + { + // do not proc when target of beacon of light is healed + if (caster == pVictim) + return false; + if (Aura * aur = caster->GetAura(53563)) + { + if (Unit * paladin = aur->GetCaster()) + { + if (paladin != this) + return false; + basepoints0 = damage; + triggered_spell_id = 53654; + target = caster; + break; + } + else + { + pVictim->RemoveAura(triggeredByAura->GetParentAura()); + return false; + } + } + } + else return false; + } // Judgements of the Wise if (dummySpell->SpellIconID == 3017) { |