mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/ScarletEnclave): Death Knight Initiates now despawn when defeated. (#22268)
This commit is contained in:
6
data/sql/updates/pending_db_world/DK_Remove_auras.sql
Normal file
6
data/sql/updates/pending_db_world/DK_Remove_auras.sql
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
-- Remove Wrong Auras
|
||||||
|
UPDATE `creature_addon` SET `auras` = '' WHERE (`guid` IN (129492, 129496, 129497, 129498, 129499));
|
||||||
|
|
||||||
|
-- Remove Wrong Unit Flags (Immune to npc and pc "Sniffs")
|
||||||
|
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~(256|512) WHERE (`entry` = 28406);
|
||||||
@@ -131,7 +131,6 @@ public:
|
|||||||
if (creature->AI()->GetData(DATA_IN_PROGRESS))
|
if (creature->AI()->GetData(DATA_IN_PROGRESS))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
creature->SetImmuneToPC(false);
|
|
||||||
creature->RemoveUnitFlag(UNIT_FLAG_SWIMMING);
|
creature->RemoveUnitFlag(UNIT_FLAG_SWIMMING);
|
||||||
|
|
||||||
player->CastSpell(creature, SPELL_DUEL, false);
|
player->CastSpell(creature, SPELL_DUEL, false);
|
||||||
@@ -231,6 +230,7 @@ public:
|
|||||||
me->RemoveAllAuras();
|
me->RemoveAllAuras();
|
||||||
me->CastSpell(attacker, SPELL_DUEL_VICTORY, true);
|
me->CastSpell(attacker, SPELL_DUEL_VICTORY, true);
|
||||||
me->RestoreFaction();
|
me->RestoreFaction();
|
||||||
|
me->DespawnOrUnsummon(10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user