mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
Core/Spells: corrected a typo that was causing Earth Shield to gain additional spell power benefits from the heal target's spellpower
This commit is contained in:
1
sql/updates/world/custom/custom_2019_10_09_00_world.sql
Normal file
1
sql/updates/world/custom/custom_2019_10_09_00_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM `spell_bonus_data` WHERE `entry`= 974;
|
||||
@@ -5545,7 +5545,7 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
});
|
||||
|
||||
// Earth Shield
|
||||
ApplySpellFix({ 378 }, [](SpellInfo* spellInfo)
|
||||
ApplySpellFix({ 379 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->AttributesEx3 |= SPELL_ATTR3_NO_DONE_BONUS;
|
||||
});
|
||||
|
||||
@@ -334,9 +334,9 @@ class spell_sha_earth_shield : public AuraScript
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
int32 bp = aurEff->GetAmount();
|
||||
|
||||
bp = caster->SpellHealingBonusDone(target, GetSpellInfo(), bp, HEAL, aurEff->GetEffIndex());
|
||||
bp = caster->SpellHealingBonusDone(target, GetSpellInfo(), bp, HEAL, EFFECT_0);
|
||||
bp = target->SpellHealingBonusTaken(caster, GetSpellInfo(), bp, HEAL);
|
||||
|
||||
if (AuraEffect const* glyphEff = caster->GetDummyAuraEffect(SPELLFAMILY_SHAMAN, SHAMAN_ICON_ID_GLYPH_OF_EARTH_SHIELD, EFFECT_0))
|
||||
AddPct(bp, glyphEff->GetAmount());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user