Core/Spells: Fix wrong target in Bloodthirst spell script. Closes #3359

This commit is contained in:
Kandera
2012-04-24 13:26:17 -04:00
parent 61bc8e1c6f
commit 2e9196162e
+1 -2
View File
@@ -397,8 +397,7 @@ class spell_warr_bloodthirst : public SpellScriptLoader
void HandleDummy(SpellEffIndex /* effIndex */) void HandleDummy(SpellEffIndex /* effIndex */)
{ {
int32 damage = GetEffectValue(); int32 damage = GetEffectValue();
if (GetHitUnit()) GetCaster()->CastCustomSpell(GetCaster(), SPELL_BLOODTHIRST, &damage, NULL, NULL, true, NULL);
GetCaster()->CastCustomSpell(GetHitUnit(), SPELL_BLOODTHIRST, &damage, NULL, NULL, true, NULL);
} }
void Register() void Register()