Core/Spells: Implemented SPELL_ATTR9_MOD_INVIS_INCLUDES_PARTY

Port From (https://github.com/TrinityCore/TrinityCore/commit/050bde08af9015e9adeaa3bf2b35f08dc210680e)
This commit is contained in:
Hondacrx
2024-08-25 21:37:14 -04:00
parent 1815f60aba
commit f1d3bc2ac2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;