Implement Sacred Shield bonus for Flash of Light, fix absorb being proced on taking heals

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-01-13 10:47:51 +01:00
parent 83ddbf0f53
commit db24e2927c
+15 -2
View File
@@ -6565,8 +6565,21 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
// Sacred Shield
if (dummySpell->SpellFamilyFlags[1]&0x00080000)
{
triggered_spell_id = 58597;
target = this;
if (procFlag & PROC_FLAG_TAKEN_POSITIVE_MAGIC_SPELL)
{
if (procSpell->SpellFamilyName == SPELLFAMILY_PALADIN
&& (procSpell->SpellFamilyFlags[0] & 0x40000000))
{
basepoints0 = int32(float(damage)/12.0f);
CastCustomSpell(this,66922,&basepoints0,NULL,NULL,true,0,triggeredByAura, pVictim->GetGUID());
return true;
}
else
return false;
}
else
triggered_spell_id = 58597;
target = this;
break;
}
// Righteous Vengeance