Created
March 28, 2013 20:36
-
-
Save mxsrc/5266575 to your computer and use it in GitHub Desktop.
Fix for Lightwell bug in MaNGOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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