DB/Creature: Get rid of more flags

Ref #25764
This commit is contained in:
offl
2021-08-23 00:08:36 +03:00
parent 354a45b09d
commit 2f02c2fb86
2 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
-- Dead Iron Giant
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~ (536870912|262144), `dynamicflags` = 0 WHERE `entry` = 29914;
UPDATE `creature_template_addon` SET `bytes2` = 1 WHERE `entry` = 29914;
-- Dead Iron Giant
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~ (536870912|262144) WHERE `entry` = 30163;
UPDATE `creature_template_addon` SET `bytes2` = 1, `auras` = '56779 29266' WHERE `entry` = 30163;
-- Elementalist Avuun, whatever it was, it will be not stored in DB
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~ 262144 WHERE `entry` = 32900;
-- Scarlet Commander, whatever it was, it will be not stored in DB
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~ 262144 WHERE `entry` = 28936;
-- Brittle Golem
UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80, `exp` = 2, `unit_flags` = 32768 WHERE `entry` = 28681;

View File

@@ -410,8 +410,7 @@ struct npc_molten_golem : public ScriptedAI
damage = 0;
me->RemoveAllAuras();
me->AttackStop();
// me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED); // Set in DB
// me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); // Set in DB
me->SetReactState(REACT_PASSIVE); // should be replaced by spell 59123
if (me->IsNonMeleeSpellCast(false))
me->InterruptNonMeleeSpells(false);