Skip to content

Commit

Permalink
fix(DB/Creature) Fel Crystals no longer follow players. (#21227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rorschach91 authored Jan 22, 2025
1 parent 3870426 commit 4927d20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions data/sql/updates/pending_db_world/Fel_Crystals.sql
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4927d20

Please sign in to comment.