Scripts/Misc: Remove useless comments & Varos' Centrifuge Shield adjustments

This commit is contained in:
offl
2021-09-14 22:18:30 +03:00
parent 9ada295ffe
commit b2fffe674d
2 changed files with 1 additions and 16 deletions

View File

@@ -254,25 +254,13 @@ class spell_varos_centrifuge_shield : public AuraScript
void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Unit* caster = GetCaster())
{
// flags taken from sniffs
if (caster->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SWIMMING|UNIT_FLAG_IMMUNE_TO_NPC|UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_UNK_6))
{
caster->ToCreature()->SetReactState(REACT_PASSIVE);
caster->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SWIMMING|UNIT_FLAG_UNK_6);
caster->SetImmuneToAll(true, true);
}
}
caster->SetImmuneToAll(true, true);
}
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Unit* caster = GetCaster())
{
caster->ToCreature()->SetReactState(REACT_AGGRESSIVE);
caster->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SWIMMING|UNIT_FLAG_UNK_6);
caster->SetImmuneToAll(false);
}
}
void Register() override

View File

@@ -325,9 +325,6 @@ class boss_flame_leviathan : public CreatureScript
void JustDied(Unit* /*killer*/) override
{
_JustDied();
// Set Field Flags 67108928 = 64 | 67108864 = UNIT_FLAG_UNK_6 | UNIT_FLAG_SKINNABLE
// Set DynFlags 12
// Set NPCFlags 0
Talk(SAY_DEATH);
}