fix(Core/Spells): Rapture should ignore line of sight. (#11519)

Rapture should not generate threat.
Fixes #11396
This commit is contained in:
UltraNix
2022-04-25 14:24:14 +02:00
committed by GitHub
parent d8d0d5a5e4
commit 7dc494bd55

View File

@@ -4249,6 +4249,14 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx3 |= SPELL_ATTR3_SUPRESS_CASTER_PROCS;
});
// Rapture
ApplySpellFix({ 63652, 63653, 63654, 63655 }, [](SpellInfo* spellInfo)
{
spellInfo->AttributesEx |= SPELL_ATTR1_NO_THREAT;
spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
spellInfo->AttributesEx3 |= SPELL_ATTR3_SUPRESS_TARGET_PROCS;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];