From dfd22cd69ec6e0cf644b7da861716a526e1de5f4 Mon Sep 17 00:00:00 2001 From: stevebone Date: Wed, 27 May 2026 23:45:30 +0200 Subject: [PATCH] Core/Spells: Fix 79528 Potion of Shrouding Fixes Potion of Shrouding (79528) requiring the player to manually target themselves before using the item. The spell has implicit target NONE in DB2, causing item use without a selected target to fail with invalid target. This updates the spell fixup to: - Use the caster as implicit target - Set explicit target masks to allied unit so item use can resolve the caster as fallback target Tested: - Using Potion of Shrouding from item without targeting self works - Cooldown behavior remains handled by normal item spell path --- src/server/game/Spells/SpellMgr.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index feaac93f5..c96d561a7 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3632,6 +3632,19 @@ void SpellMgr::LoadSpellInfoCorrections() }); }); + // Potion of Shrouding + ApplySpellFix({ 79528 }, [](SpellInfo* spellInfo) + { + spellInfo->ExplicitTargetMask = TARGET_FLAG_UNIT_ALLY; + spellInfo->RequiredExplicitTargetMask = TARGET_FLAG_UNIT_ALLY; + + ApplySpellEffectFix(spellInfo, EFFECT_0, [](SpellEffectInfo* spellEffectInfo) + { + spellEffectInfo->TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CASTER); + spellEffectInfo->TargetB = SpellImplicitTargetInfo(); + }); + }); + ApplySpellFix({ 56690, // Thrust Spear 60586, // Mighty Spear Thrust