From f1d3bc2ac2d64f8d179d6e4b7030022d327694f1 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 25 Aug 2024 21:37:14 -0400 Subject: [PATCH] Core/Spells: Implemented SPELL_ATTR9_MOD_INVIS_INCLUDES_PARTY Port From (https://github.com/TrinityCore/TrinityCore/commit/050bde08af9015e9adeaa3bf2b35f08dc210680e) --- Source/Framework/Constants/Spells/SpellConst.cs | 2 +- Source/Game/Entities/Player/Player.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Framework/Constants/Spells/SpellConst.cs b/Source/Framework/Constants/Spells/SpellConst.cs index 234a45b1e..cf6eddefd 100644 --- a/Source/Framework/Constants/Spells/SpellConst.cs +++ b/Source/Framework/Constants/Spells/SpellConst.cs @@ -1967,7 +1967,7 @@ namespace Framework.Constants public enum SpellAttr9 : uint { ForceDestLocation = 0x01, // Force Dest Location DESCRIPTION Ignores collision with terrain (unsure if it also ignores terrain height and can go under map) - Unk1 = 0x02, // 1 + ModInvisIncludesParty = 0x02, // Mod Invis Includes Party 1@Attr9 DESCRIPTION Causes invisibility auras to ignore "can always see party member invis" rule RestrictedFlightArea = 0x04, // 2 Unk3 = 0x08, // 3 SpecialDelayCalculation = 0x10, // 4 diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index 64d8eedb3..9244fb3b2 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -3945,7 +3945,7 @@ namespace Game.Entities Player seerPlayer = seer.ToPlayer(); if (seerPlayer != null) - if (IsGroupVisibleFor(seerPlayer)) + if (IsGroupVisibleFor(seerPlayer) && !GetAuraEffectsByType(AuraType.ModInvisibility).All(invis => invis.GetSpellInfo().HasAttribute(SpellAttr9.ModInvisIncludesParty))) return true; return false;