From abccbcb4be5baf0d94881deb33a03718aabec5ed Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Wed, 16 Feb 2022 08:54:08 -0300 Subject: [PATCH] fix(Core/Spells): Nefarius Corruption should only affect Vaelastrasz (#10701) * fix(Core/Spells): Nefarius Corruption should only affect Vaelastrasz --- .../updates/pending_db_world/rev_1644967518818105800.sql | 5 +++++ src/server/game/Spells/SpellInfoCorrections.cpp | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1644967518818105800.sql diff --git a/data/sql/updates/pending_db_world/rev_1644967518818105800.sql b/data/sql/updates/pending_db_world/rev_1644967518818105800.sql new file mode 100644 index 000000000..0a7f5f214 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1644967518818105800.sql @@ -0,0 +1,5 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1644967518818105800'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 17 AND `SourceGroup` = 0 AND `SourceEntry` = 23642; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(17, 0, 23642, 0, 0, 31, 1, 3, 13020, 0, 0, 0, 0, '', 'Nefarius Corruption only affects Vaelastrasz'); diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 9ccc07cf9..e5498f575 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -4064,6 +4064,14 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->AuraInterruptFlags |= AURA_INTERRUPT_FLAG_HITBYSPELL | AURA_INTERRUPT_FLAG_TAKE_DAMAGE; }); + // Nefarius Corruption + ApplySpellFix({ 23642 }, [](SpellInfo* spellInfo) + { + spellInfo->MaxAffectedTargets = 1; + spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_TARGET_ANY); + spellInfo->Effects[EFFECT_0].TargetB = SpellImplicitTargetInfo(); + }); + // Conflagration, Horseman's Cleave ApplySpellFix({ 42380, 42587 }, [](SpellInfo* spellInfo) {