Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix Flash of Light HoT healing amount with Infusion of Light talent #15

Merged
merged 1 commit into from

2 participants

@Plike

No description provided.

@Gotisch Gotisch merged commit acab058 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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;
}
Something went wrong with that request. Please try again.