Core/Spell: Fix logic fail in 96ae4caf62
This commit is contained in:
1 parent
d39b36b50f
commit
79a2a0c434
4 files changed
+5
-8
No files matched your search
@@ -144,9 +144,8 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader
|
||||
{
|
||||
// damage absorbed by Anti-Magic Shell energizes the DK with additional runic power.
|
||||
// This, if I'm not mistaken, shows that we get back ~20% of the absorbed damage as runic power.
|
||||
absorbAmount *= 0.2f;
|
||||
|
||||
GetTarget()->CastCustomSpell(SPELL_DK_RUNIC_POWER_ENERGIZE, SPELLVALUE_BASE_POINT0, absorbAmount, GetTarget(), true, NULL, aurEff);
|
||||
int32 bp = CalculatePct(absorbAmount, 20);
|
||||
GetTarget()->CastCustomSpell(SPELL_DK_RUNIC_POWER_ENERGIZE, SPELLVALUE_BASE_POINT0, bp, GetTarget(), true, NULL, aurEff);
|
||||
}
|
||||
|
||||
void Register() OVERRIDE
|
||||
|
||||
Reference in new issue
Block a user