skip ai reaction at self relocation

i had to add it earlier

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-03-03 02:02:38 +02:00
parent 0f4855d8f3
commit dff5bdedac

View File

@@ -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))