mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
skip ai reaction at self relocation
i had to add it earlier --HG-- branch : trunk
This commit is contained in:
@@ -115,7 +115,7 @@ VisibleChangesNotifier::Visit(DynamicObjectMapType &m)
|
||||
|
||||
inline void CreatureUnitRelocationWorker(Creature* c, Unit* u)
|
||||
{
|
||||
if(!u->isAlive() || !c->isAlive() || u->isInFlight())
|
||||
if(!u->isAlive() || !c->isAlive() || c == u || u->isInFlight())
|
||||
return;
|
||||
|
||||
if(c->HasReactState(REACT_AGGRESSIVE) && !c->hasUnitState(UNIT_STAT_SIGHTLESS))
|
||||
|
||||
Reference in New Issue
Block a user