diff options
| author | offl <11556157+offl@users.noreply.github.com> | 2022-03-07 03:46:45 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-03-26 15:59:33 +0100 |
| commit | b2479e78a3ba0f2483b34f2a0627ff8b998d0cc0 (patch) | |
| tree | 58ea72a6c8be9722b38a41cb297007166e9f22ff /src/server/scripts/Spells | |
| parent | 04c7e91097fbd0ba94cb60fee86958fdf29db8e9 (diff) | |
Scripts/Quest: Update 'Who Are They?' (#27855)
(cherry picked from commit a29476b92ef350ba7612b08aa885f921b612eb2f)
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 56fc5c793c1..f425b2ed763 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -586,39 +586,6 @@ class spell_q12851_going_bearback : public AuraScript } }; -enum Whoarethey -{ - SPELL_MALE_DISGUISE = 38080, - SPELL_FEMALE_DISGUISE = 38081, - SPELL_GENERIC_DISGUISE = 32756 -}; - -// 48917 - Who Are They: Cast from Questgiver -class spell_q10041_q10040_who_are_they : public SpellScript -{ - PrepareSpellScript(spell_q10041_q10040_who_are_they); - - bool Validate(SpellInfo const* /*spellEntry*/) override - { - return ValidateSpellInfo({ SPELL_MALE_DISGUISE, SPELL_FEMALE_DISGUISE, SPELL_GENERIC_DISGUISE }); - } - - void HandleScript(SpellEffIndex effIndex) - { - PreventHitDefaultEffect(effIndex); - if (Player* target = GetHitPlayer()) - { - target->CastSpell(target, target->GetNativeGender() == GENDER_MALE ? SPELL_MALE_DISGUISE : SPELL_FEMALE_DISGUISE, true); - target->CastSpell(target, SPELL_GENERIC_DISGUISE, true); - } - } - - void Register() override - { - OnEffectHitTarget += SpellEffectFn(spell_q10041_q10040_who_are_they::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); - } -}; - // http://www.wowhead.com/quest=12659 Scalps! enum Quest12659Data { @@ -2187,7 +2154,6 @@ void AddSC_quest_spell_scripts() RegisterSpellScript(spell_q12459_seeds_of_natures_wrath); RegisterSpellScript(spell_q12634_despawn_fruit_tosser); RegisterSpellScript(spell_q12851_going_bearback); - RegisterSpellScript(spell_q10041_q10040_who_are_they); RegisterSpellScript(spell_q12659_ahunaes_knife); RegisterSpellScript(spell_q9874_liquid_fire); RegisterSpellScript(spell_q12805_lifeblood_dummy); |
