From 6bf9affe8e7d2261159427185b603681b0088a3b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 28 Apr 2022 10:00:37 -0400 Subject: [PATCH] Core/Totem: Immune to all positive spells. Port From (https://github.com/TrinityCore/TrinityCore/commit/1f774873bfd97039ce63933a538a907a0ed67c2c) --- Source/Game/Entities/Totem.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Game/Entities/Totem.cs b/Source/Game/Entities/Totem.cs index a749af8d0..e16b38b3b 100644 --- a/Source/Game/Entities/Totem.cs +++ b/Source/Game/Entities/Totem.cs @@ -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)