aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 9d9b1fdc101..0296f7ceb4d 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -12904,6 +12904,7 @@ void Unit::SetFeared(bool apply)
Unit::AuraList const& fearAuras = GetAurasByType(SPELL_AURA_MOD_FEAR);
if(!fearAuras.empty())
caster = ObjectAccessor::GetUnit(*this, fearAuras.front()->GetCasterGUID());
+ if(!caster) caster = getVictim();
GetMotionMaster()->MoveFleeing(caster); // caster==NULL processed in MoveFleeing
}
else