mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Scripts Boss Lady DeathWhisper improvements
This commit is contained in:
15
sql/updates/world/3.3.5/2016_99_99_99_world.sql
Normal file
15
sql/updates/world/3.3.5/2016_99_99_99_world.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
UPDATE `creature_template` SET `unit_flags`=33554432 WHERE `entry`=38222;
|
||||
UPDATE `creature_template` SET `speed_run`=0.571429 WHERE `entry`=38222;
|
||||
UPDATE `spell_dbc` SET `DurationIndex`=29, `Effect1`=6, `EffectImplicitTargetA1`=1, `EffectApplyAuraName1`=61, `EffectBasePoints1`=100 WHERE `Id`=71290;
|
||||
|
||||
DELETE FROM `linked_respawn`WHERE `guid`=201129 AND `linkedGuid`=201129;
|
||||
DELETE FROM `creature_template_addon` WHERE `entry` IN (38009,38010,38136);
|
||||
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
|
||||
(38009,0,0,0,0,0,71235),
|
||||
(38010,0,0,0,0,0,'71234 70768'),
|
||||
(38136,0,0,0,0,0,70901);
|
||||
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName` IN('spell_deathwhisper_dominated_mind', 'spell_deathwhisper_summon_spirits','spell_cultist_dark_martyrdom');
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(71289,'spell_deathwhisper_dominated_mind'),
|
||||
(72478,'spell_deathwhisper_summon_spirits');
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1123,9 +1123,17 @@ class spell_gen_creature_permanent_feign_death : public SpellScriptLoader
|
||||
target->ToCreature()->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
target->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_DEAD);
|
||||
target->RemoveFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectApply += AuraEffectApplyFn(spell_gen_creature_permanent_feign_death_AuraScript::HandleEffectApply, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
|
||||
OnEffectRemove += AuraEffectRemoveFn(spell_gen_creature_permanent_feign_death_AuraScript::OnRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user