From 227ad5ccc57cabe278cfdac8506aa8fdc42ae588 Mon Sep 17 00:00:00 2001 From: insunaa Date: Fri, 9 Aug 2024 14:21:19 +0200 Subject: [PATCH] StaticFlags: Implement SPELL_CLICK_FOR_PARTY_ONLY --- src/game/Entities/CreatureSettings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/Entities/CreatureSettings.cpp b/src/game/Entities/CreatureSettings.cpp index 8bfdcd574d3..d5d4759daa4 100644 --- a/src/game/Entities/CreatureSettings.cpp +++ b/src/game/Entities/CreatureSettings.cpp @@ -54,6 +54,8 @@ void CreatureSettings::ResetStaticFlags(CreatureStaticFlags staticFlags, Creatur m_owner->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_HIDE_BODY); if (HasFlag(CreatureStaticFlags4::NO_BIRTH_ANIM)) m_owner->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_DO_NOT_FADE_IN); + if (HasFlag(CreatureStaticFlags3::SPELL_CLICK_FOR_PARTY_ONLY)) + m_owner->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_SPELL_CLICK_IN_GROUP); } void CreatureSettings::SetFlag(CreatureStaticFlags flag)