@@ -116,38 +116,6 @@ class spell_item_aegis_of_preservation : public AuraScript
116116 }
117117};
118118
119- enum ZezzaksShard
120- {
121- SPELL_EYE_OF_GRILLOK = 38495
122- };
123-
124- // 38554 - Absorb Eye of Grillok (31463: Zezzak's Shard)
125- class spell_item_absorb_eye_of_grillok : public AuraScript
126- {
127- PrepareAuraScript (spell_item_absorb_eye_of_grillok);
128-
129- bool Validate (SpellInfo const * /* spellInfo*/ ) override
130- {
131- return ValidateSpellInfo ({ SPELL_EYE_OF_GRILLOK });
132- }
133-
134- void PeriodicTick (AuraEffect const * aurEff)
135- {
136- PreventDefaultAction ();
137-
138- if (!GetCaster () || GetTarget ()->GetTypeId () != TYPEID_UNIT)
139- return ;
140-
141- GetCaster ()->CastSpell (GetCaster (), SPELL_EYE_OF_GRILLOK, aurEff);
142- GetTarget ()->ToCreature ()->DespawnOrUnsummon ();
143- }
144-
145- void Register () override
146- {
147- OnEffectPeriodic += AuraEffectPeriodicFn (spell_item_absorb_eye_of_grillok::PeriodicTick, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
148- }
149- };
150-
151119enum AlchemistStone
152120{
153121 SPELL_ALCHEMISTS_STONE_EXTRA_HEAL = 21399 ,
@@ -2809,42 +2777,6 @@ class spell_magic_eater_food : public AuraScript
28092777 }
28102778};
28112779
2812- enum PurifyHelboarMeat
2813- {
2814- SPELL_SUMMON_PURIFIED_HELBOAR_MEAT = 29277 ,
2815- SPELL_SUMMON_TOXIC_HELBOAR_MEAT = 29278 ,
2816- };
2817-
2818- class spell_item_purify_helboar_meat : public SpellScript
2819- {
2820- PrepareSpellScript (spell_item_purify_helboar_meat);
2821-
2822- bool Load () override
2823- {
2824- return GetCaster ()->GetTypeId () == TYPEID_PLAYER;
2825- }
2826-
2827- bool Validate (SpellInfo const * /* spell*/ ) override
2828- {
2829- return ValidateSpellInfo (
2830- {
2831- SPELL_SUMMON_PURIFIED_HELBOAR_MEAT,
2832- SPELL_SUMMON_TOXIC_HELBOAR_MEAT
2833- });
2834- }
2835-
2836- void HandleDummy (SpellEffIndex /* effIndex */ )
2837- {
2838- Unit* caster = GetCaster ();
2839- caster->CastSpell (caster, roll_chance_i (50 ) ? SPELL_SUMMON_PURIFIED_HELBOAR_MEAT : SPELL_SUMMON_TOXIC_HELBOAR_MEAT, true );
2840- }
2841-
2842- void Register () override
2843- {
2844- OnEffectHitTarget += SpellEffectFn (spell_item_purify_helboar_meat::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
2845- }
2846- };
2847-
28482780enum NighInvulnerability
28492781{
28502782 SPELL_NIGH_INVULNERABILITY = 30456 ,
@@ -2905,47 +2837,6 @@ class spell_item_poultryizer : public SpellScript
29052837 }
29062838};
29072839
2908- enum SocretharsStone
2909- {
2910- SPELL_SOCRETHAR_TO_SEAT = 35743 ,
2911- SPELL_SOCRETHAR_FROM_SEAT = 35744 ,
2912- };
2913-
2914- class spell_item_socrethars_stone : public SpellScript
2915- {
2916- PrepareSpellScript (spell_item_socrethars_stone);
2917-
2918- bool Load () override
2919- {
2920- return (GetCaster ()->GetAreaId () == 3900 || GetCaster ()->GetAreaId () == 3742 );
2921- }
2922- bool Validate (SpellInfo const * /* spell*/ ) override
2923- {
2924- return ValidateSpellInfo ({ SPELL_SOCRETHAR_TO_SEAT, SPELL_SOCRETHAR_FROM_SEAT });
2925- }
2926-
2927- void HandleDummy (SpellEffIndex /* effIndex */ )
2928- {
2929- Unit* caster = GetCaster ();
2930- switch (caster->GetAreaId ())
2931- {
2932- case 3900 :
2933- caster->CastSpell (caster, SPELL_SOCRETHAR_TO_SEAT, true );
2934- break ;
2935- case 3742 :
2936- caster->CastSpell (caster, SPELL_SOCRETHAR_FROM_SEAT, true );
2937- break ;
2938- default :
2939- return ;
2940- }
2941- }
2942-
2943- void Register () override
2944- {
2945- OnEffectHitTarget += SpellEffectFn (spell_item_socrethars_stone::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
2946- }
2947- };
2948-
29492840enum DemonBroiledSurprise
29502841{
29512842 QUEST_SUPER_HOT_STEW = 11379 ,
@@ -4351,7 +4242,6 @@ void AddSC_item_spell_scripts()
43514242 new spell_item_trigger_spell (" spell_item_mithril_mechanical_dragonling" , SPELL_MITHRIL_MECHANICAL_DRAGONLING);
43524243
43534244 RegisterSpellScript (spell_item_aegis_of_preservation);
4354- RegisterSpellScript (spell_item_absorb_eye_of_grillok);
43554245 RegisterSpellScript (spell_item_alchemists_stone);
43564246 new spell_item_anger_capacitor<8 >(" spell_item_tiny_abomination_in_a_jar" );
43574247 new spell_item_anger_capacitor<7 >(" spell_item_tiny_abomination_in_a_jar_hero" );
@@ -4429,10 +4319,8 @@ void AddSC_item_spell_scripts()
44294319
44304320 RegisterSpellScript (spell_item_ashbringer);
44314321 RegisterSpellScript (spell_magic_eater_food);
4432- RegisterSpellScript (spell_item_purify_helboar_meat);
44334322 RegisterSpellScript (spell_item_nigh_invulnerability);
44344323 RegisterSpellScript (spell_item_poultryizer);
4435- RegisterSpellScript (spell_item_socrethars_stone);
44364324 RegisterSpellScript (spell_item_demon_broiled_surprise);
44374325 RegisterSpellScript (spell_item_complete_raptor_capture);
44384326 RegisterSpellScript (spell_item_impale_leviroth);
0 commit comments