[10053] Use UNIT_STAT_CONTROLED for mark unit state under direct player control.
commit01a8f4fd28b8b7b8713b480cf2077b2ef4252be4
authorVladimirMangos <vladimir@getmangos.com>
Mon, 14 Jun 2010 04:26:21 +0000 (14 08:26 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Mon, 14 Jun 2010 06:27:44 +0000 (14 10:27 +0400)
treedfea52fd7652d9a32b74e17f813b5d6b8c8533b9
parent5208b2bb94810cd70c198826092558e241441822
[10053] Use UNIT_STAT_CONTROLED for mark unit state under direct player control.

* This allow prevent move home/to caster at apply
* Also replace AI and reset movegens at control time
* Also stop combat and clear threat/hostile list at lost control for prevent combat with freindly units.
src/game/CreatureAI.cpp
src/game/CreatureEventAI.cpp
src/game/GridNotifiersImpl.h
src/game/MotionMaster.cpp
src/game/Player.cpp
src/game/SpellAuras.cpp
src/game/Unit.cpp
src/game/Unit.h
src/shared/revision_nr.h