Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #15 from Plike/fixes

Fix Flash of Light HoT healing amount with Infusion of Light talent
  • Loading branch information...
commit acab058e112ff2522f99db444f16a77ee94e956e 2 parents 6b1035e + 54be1d5
@Gotisch Gotisch authored
Showing with 15 additions and 2 deletions.
  1. +15 −2 src/game/UnitAuraProcHandler.cpp
View
17 src/game/UnitAuraProcHandler.cpp
@@ -2495,8 +2495,21 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
{
if (procSpell && IsFriendlyTo(pVictim))
{
- if (procSpell->SpellFamilyFlags.test<CF_PALADIN_FLASH_OF_LIGHT>() && (pVictim->HasAura(53569, EFFECT_INDEX_0) || pVictim->HasAura(53576, EFFECT_INDEX_0)))
- triggered_spell_id = 66922;
+ if (procSpell->SpellFamilyFlags.test<CF_PALADIN_FLASH_OF_LIGHT>())
+ {
+ // Infusion of Light Rank 1 talent
+ if (pVictim->HasAura(53569, EFFECT_INDEX_0))
+ {
+ basepoints[0] = int32(damage / 12 / 2); // 50%
+ triggered_spell_id = 66922;
+ }
+ // Infusion of Light Rank 2 talent
+ else if (pVictim->HasAura(53576, EFFECT_INDEX_0)) // 100%
+ {
+ basepoints[0] = int32(damage / 12);
+ triggered_spell_id = 66922;
+ }
+ }
else
return SPELL_AURA_PROC_FAILED;
}
Please sign in to comment.
Something went wrong with that request. Please try again.