aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorSorikoff <46191832+Sorikoff@users.noreply.github.com>2020-02-08 21:55:09 +0200
committerGitHub <noreply@github.com>2020-02-08 20:55:09 +0100
commit53657441aa024ce9db42467a3bf52181b26e4c56 (patch)
tree5447b71d3998b9c2d5596882a0fc178cd7d3a142 /src/server/game/Spells/SpellEffects.cpp
parent98d6c501d7c1a7a632c6ff8b1d46c7d0d4ae5b37 (diff)
Scripts/Spells: Nourish (#24057)
* Scripts/Spells: Nourish * Rename 9999_99_99_99_world.sql to 2020_02_08_02_world.sql * Update 2020_02_08_02_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 943a197e6da..116dac3c4ab 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -1281,25 +1281,6 @@ void Spell::EffectHeal(SpellEffIndex effIndex)
if (!unitCaster->HasAura(54824))
unitTarget->RemoveAura(targetAura->GetId(), targetAura->GetCasterGUID());
}
- // Nourish
- else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellFamilyFlags[1] & 0x2000000)
- {
- addhealth = unitCaster->SpellHealingBonusDone(unitTarget, m_spellInfo, addhealth, HEAL, effIndex, { });
-
- // Glyph of Nourish
- if (AuraEffect const* aurEff = unitCaster->GetAuraEffect(62971, 0))
- {
- uint32 auraCount = 0;
- Unit::AuraEffectList const& periodicHeals = unitTarget->GetAuraEffectsByType(SPELL_AURA_PERIODIC_HEAL);
- for (AuraEffect const* hot : periodicHeals)
- {
- if (unitCaster->GetGUID() == hot->GetCasterGUID())
- ++auraCount;
- }
-
- AddPct(addhealth, aurEff->GetAmount() * auraCount);
- }
- }
// Death Pact - return pct of max health to caster
else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && m_spellInfo->SpellFamilyFlags[0] & 0x00080000)
addhealth = unitCaster->SpellHealingBonusDone(unitTarget, m_spellInfo, int32(unitCaster->CountPctFromMaxHealth(damage)), HEAL, effIndex, { });