mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-08 02:00:29 +00:00
fix(DB/Spell): Fix Seal of Command not proccing from HotR and ShoR (#24986)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Fix Seal of Command (20375) not proccing from HotR and ShoR
|
||||
UPDATE `spell_proc` SET `SchoolMask` = 0, `SpellFamilyName` = 10, `SpellFamilyMask1` = 0x168000 WHERE `SpellId` = 20375;
|
||||
@@ -190,14 +190,10 @@ class spell_pal_seal_of_command_aura : public AuraScript
|
||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
int32 targets = 3;
|
||||
if (SpellInfo const* procSpell = eventInfo.GetSpellInfo())
|
||||
{
|
||||
if (procSpell->IsAffectingArea())
|
||||
{
|
||||
targets = 1;
|
||||
}
|
||||
}
|
||||
// Only auto-attacks (no spell info) should trigger SoC's cleave.
|
||||
// Spells like HotR/ShoR should proc SoC but not cleave.
|
||||
// Judgement cleave is handled separately via JotJ code path.
|
||||
int32 targets = eventInfo.GetSpellInfo() ? 1 : 3;
|
||||
|
||||
Unit* target = eventInfo.GetActionTarget();
|
||||
if (target->IsAlive())
|
||||
|
||||
Reference in New Issue
Block a user