Core/Scripts Boss Lady DeathWhisper improvements

This commit is contained in:
Gustavo
2016-10-14 16:44:49 -03:00
committed by Aokromes
parent ff53b66933
commit d82abaa2ac
3 changed files with 455 additions and 406 deletions

View 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');

View File

@@ -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);
}
};