[11802] Implement quest-credit for spell 51858

Note: Many other dummy spells should work the same, please inform about them

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2011-09-24 16:31:07 +02:00
parent 46e869a454
commit 2baf5f8c6e
2 changed files with 11 additions and 1 deletions

View file

@ -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)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11801"
#define REVISION_NR "11802"
#endif // __REVISION_NR_H__