Skip to content

Instantly share code, notes, and snippets.

@mightyCelu
Created March 28, 2013 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mightyCelu/5266575 to your computer and use it in GitHub Desktop.
Save mightyCelu/5266575 to your computer and use it in GitHub Desktop.
Fix for Lightwell bug in MaNGOS
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3ceb20b..c18d5cb 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3143,8 +3143,8 @@ void Spell::_handle_immediate_phase()
if (m_spellInfo->Effect[j] == 0)
continue;
- // apply Send Event effect to ground in case empty target lists
- if (m_spellInfo->Effect[j] == SPELL_EFFECT_SEND_EVENT && !HaveTargetsForEffect(SpellEffectIndex(j)))
+ // apply Send Event and spawn gameobject effect to ground in case empty target lists
+ if ((m_spellInfo->Effect[j] == SPELL_EFFECT_SEND_EVENT || m_spellInfo->Effect[j] == SPELL_EFFECT_TRANS_DOOR) && !HaveTargetsForEffect(SpellEffectIndex(j)))
{
HandleEffects(NULL, NULL, NULL, SpellEffectIndex(j));
continue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment