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

View File

@@ -397,8 +397,7 @@ class spell_warr_bloodthirst : public SpellScriptLoader
void HandleDummy(SpellEffIndex /* effIndex */)
{
int32 damage = GetEffectValue();
if (GetHitUnit())
GetCaster()->CastCustomSpell(GetHitUnit(), SPELL_BLOODTHIRST, &damage, NULL, NULL, true, NULL);
GetCaster()->CastCustomSpell(GetCaster(), SPELL_BLOODTHIRST, &damage, NULL, NULL, true, NULL);
}
void Register()