mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[9165] Implement speed reduction at creatures DoFleeToGetAssistance
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
1e8e8f5fd2
commit
23a77a1d36
4 changed files with 23 additions and 6 deletions
|
|
@ -557,6 +557,8 @@ void Creature::DoFleeToGetAssistance()
|
|||
cell_lock->Visit(cell_lock, grid_creature_searcher, *GetMap(), *this, radius);
|
||||
|
||||
SetNoSearchAssistance(true);
|
||||
UpdateSpeed(MOVE_RUN, false);
|
||||
|
||||
if(!pCreature)
|
||||
SetFeared(true, getVictim()->GetGUID(), 0 ,sWorld.getConfig(CONFIG_CREATURE_FAMILY_FLEE_DELAY));
|
||||
else
|
||||
|
|
@ -1242,7 +1244,12 @@ void Creature::setDeathState(DeathState s)
|
|||
if (canFly() && FallGround())
|
||||
return;
|
||||
|
||||
SetNoSearchAssistance(false);
|
||||
if (HasSearchedAssistance())
|
||||
{
|
||||
SetNoSearchAssistance(false);
|
||||
UpdateSpeed(MOVE_RUN, false);
|
||||
}
|
||||
|
||||
Unit::setDeathState(CORPSE);
|
||||
}
|
||||
if (s == JUST_ALIVED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue