Jump to content

Recommended Posts

Posted

* What bug does the patch fix? What features does the patch add?

-In previous revs the item Hallow's End Pumpkin Treat was not working at all; the item would be consumed with no effect. This patch adds the effect.

* For which repository revision was the patch created?

-This patch is for rev 10197

* Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

- http://getmangos.eu/community/viewtopic.php?id=14606&p=119577#post119577

* Who has been writing this patch? Please include either forum user names or email addresses.

-I have, [email protected]

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index bff584f..099187f 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1013,6 +1013,20 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
                    m_caster->CastSpell(m_caster, 23782, true);
                    m_caster->CastSpell(m_caster, 23783, true);
                    return;
+                case 24930:                                 //Hallow's End Treat
+                {
+                    uint32 spell_id = 0;
+                    switch(irand(1,4))
+                    {
+                        case 1: spell_id = 24924; break;   //Larger and Orange
+                        case 2: spell_id = 24925; break;  //Skeleton          
+                        case 3: spell_id = 24926; break;  //Pirate        
+                        case 4: spell_id = 24927; break;  //Ghost                         
+                    }
+                    m_caster->CastSpell(m_caster,spell_id,true);
+                }
                case 25860:                                 // Reindeer Transformation
                {
                    if (!m_caster->HasAuraType(SPELL_AURA_MOUNTED))

  • 40 years later...
Posted

It's not that anything has to be wrong with your code. Some patches have a higher priority for review than others.

Please be more patient. It can sometimes take weeks for the core devs to review your work. There's few of them and a large number of patches to sort through.

Thank you for your work. I'll definitely be adding this one to my server for testing. I like to have a "Week of Holidays" during the summer doldrums, where all the seasonal events get at least one day to run.

Posted

Useless, in terms of that the spells used won't do/can't do any real harm if caster is Unit. I wold not have noticed though, if it wasn't for the comment :)

+1, will commit when I get time tomorrow

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use