[Spells/Paladin] Blessing of Sanctuary

[CODE]DELETE FROM spell_linked_spell WHERE spell_trigger=67480 AND spell_effect=68066;
INSERT INTO spell_linked_spell (spell_trigger,spell_effect,type,comment) VALUES
(67480,68066,2, ‘Blessing of Sanctuary - Damage Reduction’);[/sql]

Blessing of Sanctuary (buff) should link to 68066 (Damage Reduction) (source: sniffs)

Damage Reduction toolip: ToolTip: Damage taken reduced by $s1% and $s3% of all threat transferred to warrior.

effect: apply aura: SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, value = -3, misc = 127 (127), miscB = 0, periodic = 0

[/CODE]

how updated is this? is it on tracker? is it correct/ can it be pushed?

hm, iirc that part was hardcoded somewhere

/e: in Unit::MeleeDamageBonus

[CODE]// Blessing of Sanctuary

// Greater Blessing of Sanctuary

case 19:

case 1804:

{

if ((*i)->GetSpellInfo()->SpellFamilyName != SPELLFAMILY_PALADIN)

    continue;


if ((*i)->GetMiscValue() & (spellProto ? spellProto->GetSchoolMask() : 0))

    AddPctN(TakenTotalMod, (*i)->GetAmount());

break;

}[/CODE]

this problem is not only with BoS, but also with GBoS and RH →

[CODE]-- BoS DMG Taken Reduction

DELETE FROM spell_linked_spell WHERE spell_trigger = 67480 AND spell_effect = 68066;

INSERT INTO spell_linked_spell (spell_trigger,spell_effect,type,comment) VALUES

(67480,68066,2, ‘Blessing of Sanctuary - Damage Reduction’);

– GBoS DMG Taken Reduction

DELETE FROM spell_linked_spell WHERE spell_trigger = 25899 AND spell_effect = 68066;

INSERT INTO spell_linked_spell (spell_trigger,spell_effect,type,comment) VALUES

(25899,68066,2, ‘Greater Blessing of Sanctuary - Damage Reduction’);

– Renewed Hope DMG Taken Reduction

DELETE FROM spell_linked_spell WHERE spell_trigger = 63944 AND spell_effect = 68066;

INSERT INTO spell_linked_spell (spell_trigger,spell_effect,type,comment) VALUES

(63944,68066,2, ‘Renewed Hope - Damage Reduction’);[/CODE]

using spell_linked_spell here is a bad idea, read https://github.com/TrinityCore/TrinityCore/pull/3939#issuecomment-2729310