aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-29 17:22:58 -0600
committermegamage <none@none>2009-03-29 17:22:58 -0600
commitba99171d5b92176c8afd43fc7c6d2e4c287c4307 (patch)
tree29bc6f9cd3e840a88b3a4a14c3f7f914ac30f26d /src
parentd332c7225ba71d7ba404e2a7eaf2cb41f0c8ec05 (diff)
[7585] Implement quest item 39164 work. Author: KiriX
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f741ee12f24..91a62f85bdd 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1233,7 +1233,25 @@ void Spell::EffectDummy(uint32 i)
m_caster->CastSpell(m_caster, 30452, true, NULL);
return;
- }
+ }
+ case 52308:
+ {
+ switch(i)
+ {
+ case 0:
+ {
+ uint32 spellID = m_spellInfo->CalculateSimpleValue(0);
+ uint32 reqAuraID = m_spellInfo->CalculateSimpleValue(1);
+
+ if (m_caster->HasAura(reqAuraID,0))
+ m_caster->CastSpell(m_caster,spellID,true,NULL);
+ return;
+ }
+ case 1:
+ return; // additional data for dummy[0]
+ }
+ return;
+ }
case 53341:
case 53343:
{