From 2baf5f8c6e94dc8cdeb1626ae0caf7af437d9c86 Mon Sep 17 00:00:00 2001 From: Schmoozerd Date: Sat, 24 Sep 2011 16:31:07 +0200 Subject: [PATCH] [11802] Implement quest-credit for spell 51858 Note: Many other dummy spells should work the same, please inform about them Signed-off-by: Schmoozerd --- src/game/SpellEffects.cpp | 10 ++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index c7e64154d..43d3e840c 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2141,6 +2141,16 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) return; } + case 51858: // Siphon of Acherus + { + if (!m_originalCaster || !unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) + return; + + if (Player* pPlayer = m_originalCaster->GetCharmerOrOwnerPlayerOrPlayerItself()) + pPlayer->KilledMonsterCredit(unitTarget->GetEntry(), unitTarget->GetObjectGuid()); + + return; + } case 52308: // Take Sputum Sample { switch(eff_idx) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2d4548a83..f8cb6f1ad 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11801" + #define REVISION_NR "11802" #endif // __REVISION_NR_H__