diff options
author | thenecromancer <none@none> | 2010-01-13 10:47:51 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-13 10:47:51 +0100 |
commit | db24e2927c0a67576011692ef8c2f8150da9425f (patch) | |
tree | 262428261b179e2193e37338cc06348844abfedc /src/game/Unit.cpp | |
parent | 83ddbf0f530d616e8dda619e2e1b922248bd363c (diff) |
Implement Sacred Shield bonus for Flash of Light, fix absorb being proced on taking heals
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 78e8ece31bd..b1a7761788e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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 |