Implement movement counters (#197)

* Implement movement counters.

* Fix 1.8.4 build.

* Remove redundant check

* Minor changes.

* Fix problem with fear while mind controlling rooted unit.

* Fix wrong guid being sent in speed change.

* Move some functions around.

* Differentiate between possess and charm.

* Hack fix for mind control bug in 1.8.4.

* Fix bug with Mind Vision.

* Use namespace instead of class.
This commit is contained in:
ratkosrb
2019-06-12 18:29:21 +03:00
committed by GitHub
parent d4d6c262a1
commit b6f4a2574b
32 changed files with 1308 additions and 908 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData *data, Player *target) c
BuildMovementUpdate(&buf, updateFlags);
#if SUPPORTED_CLIENT_BUILD <= CLIENT_BUILD_1_8_4
buf << uint32(target->IsMoverOf(this) ? 1 : 0); // Flags, 1 - Active Player
buf << uint32(target->GetMover() == this ? 1 : 0); // Flags, 1 - Active Player
buf << uint32(0); // AttackCycle
buf << uint32(0); // TimerId
buf << uint64(0); // VictimGuid