Skip to content

Commit

Permalink
UnitAI: Remove GetVictim check to allow fleeing
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Jan 1, 2025
1 parent 6de928d commit 2143d45
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/game/AI/BaseAI/UnitAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,6 @@ void UnitAI::TimedFleeingEnded()

bool UnitAI::DoFlee(uint32 duration)
{
Unit* victim = m_unit->GetVictim();
if (!victim)
return false;

if (!duration)
duration = sWorld.getConfig(CONFIG_UINT32_CREATURE_FAMILY_FLEE_DELAY);

Expand Down

0 comments on commit 2143d45

Please sign in to comment.