DB/Creature: Remove remaining non-static flags from DB, finally (#26884)

This commit is contained in:
offl
2021-09-04 02:13:45 +03:00
committed by GitHub
parent 5a60082e5d
commit 0e12e23f77
4 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
--
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~ 2 WHERE `entry` IN (18374,20308,21466,21467,21600,21601,17651,21823,29281,30809,33651,34108);
-- They're only unselectable, their faction is hostile, they don't have auras
-- For now leaving feign death aura, later it should be replaced by passive react state, there's no other option
UPDATE `creature` SET `unit_flags` = 33554496 WHERE `id` = 26620 AND `unit_flags` & 33554432;

View File

@@ -467,6 +467,7 @@ public:
void Reset() override
{
Initialize();
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
if (instance->GetGuidData(DATA_IMAGE_OF_MEDIVH).IsEmpty())
{

View File

@@ -939,6 +939,7 @@ class boss_vx_001 : public CreatureScript
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_SPECIAL_UNARMED); // This is a hack to force the yet to be unfolded visual state.
me->SetReactState(REACT_PASSIVE);
_fireFighter = false;
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
void DamageTaken(Unit* who, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override

View File

@@ -156,7 +156,10 @@ struct boss_svala : public BossAI
if (_introCompleted)
events.SetPhase(NORMAL);
else
{
events.SetPhase(IDLE);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
me->SetDisableGravity(false);