aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-06-08 16:12:43 +0200
committerMachiavelli <none@none>2010-06-08 16:12:43 +0200
commite5aa4f7be97ca7c03cf9d8f5f3547f01b8c9cd3e (patch)
tree1e40d5057d042556a835c4e58dd051e19a79eec1 /src
parent04955cfb235e7dd3803a486ec1d198401446278f (diff)
Only proc Infusion of Light (active buff) on Holy Shock criticals. (Problem introduced in previous fix)
Author: Shauren --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index a5a3ea268f3..e2493e50e3c 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -7753,7 +7753,7 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
// Infusion of Light
if (dummySpell->SpellIconID == 3021)
{
- // Flash of Light Heal over Time
+ // Flash of Light HoT on Flash of Light when Sacred Shield active
if (procSpell->SpellFamilyFlags[0] & 0x40000000 && procSpell->SpellIconID == 242)
{
*handled = true;
@@ -7763,9 +7763,14 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
CastCustomSpell(pVictim, 66922, &bp0, NULL, NULL, true);
return true;
}
- }
- }
- }break;
+ }
+ // but should not proc on non-critical Holy Shocks
+ else if ((procSpell->SpellFamilyFlags[0] & 0x200000 || procSpell->SpellFamilyFlags[1] & 0x10000) && !(procEx & PROC_EX_CRITICAL_HIT))
+ *handled = true;
+ break;
+ }
+ break;
+ }
case SPELLFAMILY_MAGE:
{
// Combustion