Core/MovementGenerators: Don't remove evade state when clearing unit states.

Core/Spells: Don't start combat when the target is evading.
Closes issue 1861

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-11-13 23:51:23 +01:00
parent 7beb14b177
commit 7811c89a93
2 changed files with 2 additions and 2 deletions
@@ -54,7 +54,7 @@ HomeMovementGenerator<Creature>::_setTargetLocation(Creature & owner)
uint32 travel_time = i_destinationHolder.SetDestination(traveller, x, y, z);
modifyTravelTime(travel_time);
owner.clearUnitState(UNIT_STAT_ALL_STATE);
owner.clearUnitState(UNIT_STAT_ALL_STATE & ~UNIT_STAT_EVADE);
}
bool