fix(DB/Creature) Fel Crystals no longer follow players. (#21227)

This commit is contained in:
Rocco Silipo
2025-01-22 15:18:02 +01:00
committed by GitHub
parent 3870426a4b
commit 4927d20d48
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
-- Change creature template flags (before: IMMUNE_TO_PC, IMMUNE_TO_NPC, NOT_SELECTABLE. now: STUNNED, NOT_SELECTABLE).
UPDATE `creature_template` SET `unit_flags`=`unit_flags`& ~33555200 WHERE (`entry` = 24722);
UPDATE `creature_template` SET `unit_flags`=`unit_flags`|33816576 WHERE (`entry` = 24722);
-- Add Rooted and Flight (Sniffed Flags).
UPDATE `creature_template_movement` SET `Flight` = 1, `Rooted` = 1 WHERE (`CreatureId` = 24722);

View File

@@ -161,7 +161,7 @@ struct boss_selin_fireheart : public BossAI
if (Creature* crystal = SelectNearestCrystal(false))
{
Talk(EMOTE_CRYSTAL);
crystal->ReplaceAllUnitFlags(UNIT_FLAG_NONE);
crystal->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
crystal->SetInCombatWithZone();
crystal->AI()->DoCast(me, SPELL_MANA_RAGE, true);
DoCast(crystal, SPELL_FEL_CRYSTAL_COSMETIC, true);