aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2014-12-29 04:00:29 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2014-12-29 04:00:29 +0100
commitc5a79fe37bceb967254f6b1124ef677ee4c0596c (patch)
tree6bb7c329a28ef5a62d0bf15da0d2c98f8332a9a0 /src/server/scripts/Spells
parent03957c269845a6530ca7d477257ee9bf413975fc (diff)
Core: fixed more typos
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_dk.cpp14
1 files changed, 7 insertions, 7 deletions
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*/)