From c5a79fe37bceb967254f6b1124ef677ee4c0596c Mon Sep 17 00:00:00 2001 From: joschiwald Date: Mon, 29 Dec 2014 04:00:29 +0100 Subject: Core: fixed more typos --- src/server/scripts/Spells/spell_dk.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 5a2e19f08c2..338fb3a00e7 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -1231,8 +1231,8 @@ class spell_dk_raise_dead : public SpellScriptLoader private: bool Validate(SpellInfo const* spellInfo) override { - if (!sSpellMgr->GetSpellInfo(spellInfo->GetEffect(EFFECT_1)->CalcValue()) - || !sSpellMgr->GetSpellInfo(spellInfo->GetEffect(EFFECT_2)->CalcValue()) + if (!spellInfo->GetEffect(EFFECT_0) || !sSpellMgr->GetSpellInfo(spellInfo->GetEffect(EFFECT_0)->CalcValue()) + || spellInfo->GetEffect(EFFECT_1) || !sSpellMgr->GetSpellInfo(spellInfo->GetEffect(EFFECT_1)->CalcValue()) || !sSpellMgr->GetSpellInfo(SPELL_DK_RAISE_DEAD_USE_REAGENT) || !sSpellMgr->GetSpellInfo(SPELL_DK_MASTER_OF_GHOULS)) return false; @@ -1312,12 +1312,12 @@ class spell_dk_raise_dead : public SpellScriptLoader uint32 GetGhoulSpellId() { // Do we have talent Master of Ghouls? - if (GetCaster()->HasAura(SPELL_DK_MASTER_OF_GHOULS)) - // summon as pet - return GetSpellInfo()->GetEffect(EFFECT_2)->CalcValue(); + //if (GetCaster()->HasAura(SPELL_DK_MASTER_OF_GHOULS)) + // summon as geist + // return GetSpellInfo()->GetEffect(EFFECT_1)->CalcValue(); - // or guardian - return GetSpellInfo()->GetEffect(EFFECT_1)->CalcValue(); + // or pet + return GetSpellInfo()->GetEffect(EFFECT_0)->CalcValue(); } void HandleRaiseDead(SpellEffIndex /*effIndex*/) -- cgit v1.2.3