mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
@@ -290,6 +290,13 @@ class spell_sha_earth_shield : public SpellScriptLoader
|
||||
amount = caster->SpellHealingBonusDone(GetUnitOwner(), GetSpellInfo(), amount, HEAL);
|
||||
amount = GetUnitOwner()->SpellHealingBonusTaken(caster, GetSpellInfo(), amount, HEAL);
|
||||
|
||||
//! WORKAROUND
|
||||
// If target is affected by healing reduction, modifier is guaranteed to be negative
|
||||
// value (e.g. -50). To revert the effect, multiply amount with reciprocal of relative value:
|
||||
// (100 / ((-1) * modifier)) * 100 = (-1) * 100 * 100 / modifier = -10000 / modifier
|
||||
if (int32 modifier = GetUnitOwner()->GetMaxNegativeAuraModifier(SPELL_AURA_MOD_HEALING_PCT))
|
||||
ApplyPct(amount, -10000.0f / float(modifier));
|
||||
|
||||
// Glyph of Earth Shield
|
||||
//! WORKAROUND
|
||||
//! this glyph is a proc
|
||||
|
||||
Reference in New Issue
Block a user