aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKandera <KanderaDev@gmail.com>2012-04-24 13:26:17 -0400
committerKandera <KanderaDev@gmail.com>2012-04-24 13:26:17 -0400
commit2e9196162e6c17972b7b863dddf3acacd79eb624 (patch)
tree91378976c39d4de8f75f67280812f7af08612c73 /src
parent61bc8e1c6f82558b3cb1f441ffad1d40dca198a9 (diff)
Core/Spells: Fix wrong target in Bloodthirst spell script. Closes #3359
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp
index 3e4c043ae47..3b683eb5795 100644
--- a/src/server/scripts/Spells/spell_warrior.cpp
+++ b/src/server/scripts/Spells/spell_warrior.cpp
@@ -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()