mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix beacon of light.
*Fix a crash in Spell::CanAutoCast. --HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user