Core/Totem: Immune to all positive spells.

Port From (https://github.com/TrinityCore/TrinityCore/commit/1f774873bfd97039ce63933a538a907a0ed67c2c)
This commit is contained in:
hondacrx
2022-04-28 10:00:37 -04:00
parent b99f45b472
commit 6bf9affe8e
+6 -5
View File
@@ -146,11 +146,12 @@ namespace Game.Entities
public override bool IsImmunedToSpellEffect(SpellInfo spellInfo, SpellEffectInfo spellEffectInfo, WorldObject caster)
{
// @todo possibly all negative auras immune?
if (GetEntry() == 5925)
return false;
if (spellEffectInfo == null)
// immune to all positive spells, except of stoneclaw totem absorb and sentry totem bind sight
// totems positive spells have unit_caster target
if (spellEffectInfo.Effect != SpellEffectName.Dummy &&
spellEffectInfo.Effect != SpellEffectName.ScriptEffect &&
spellInfo.IsPositive() && spellEffectInfo.TargetA.GetTarget() != Targets.UnitCaster &&
spellEffectInfo.TargetA.GetCheckType() != SpellTargetCheckTypes.Entry)
return true;
switch (spellEffectInfo.ApplyAuraName)