diff options
| author | megamage <none@none> | 2009-01-28 00:01:52 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-28 00:01:52 -0600 |
| commit | 6de869d8f62464742ea18d34753f1898728d9f53 (patch) | |
| tree | e53923a24c369ac53885708382714b0fc0fda0d4 /src/game/Unit.cpp | |
| parent | f9754e36309dd37c69109d5966d4be9fdfd902fd (diff) | |
*Fix the bug that event ai mobs sometimes chase victims even when polymorphed.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 1 |
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 |
