diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2021-01-10 10:18:51 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-05 23:04:24 +0100 |
commit | 6b242eee130f1ac405187a03cefaf595d857ad99 (patch) | |
tree | 8b9db4fda2439eb8993d20492cbf331921fdefaa /src/common/Logging/Log.cpp | |
parent | 701a3927c153cd4020bc0966fb7e11c750f8d37f (diff) |
Core/Unit: Fix movement hiccups in water (#24020)
* Core/Unit: Allow to define Units which can enter water but cannot swim
Allow to define Units which can enter water but cannot swim, i.e. crabs walking at the bottom of a sea.
* Add UNIT_FLAG_SWIMMING to creatures when entering combat
* Fix charmed creatures not entering water
* Always allow Creatures controlled by players to enter water
* Add swimming flag when possessing a unit and remove it properly at the end, even if the creature engaged combat before and after.
When adding/removing UNIT_FLAG_SWIMMING manually calling Creature::RefreshSwimmingFlag(true) might be required.
(cherry picked from commit fc1a0d936888395f114028af3337e7d674e0a43c)
Diffstat (limited to 'src/common/Logging/Log.cpp')
0 files changed, 0 insertions, 0 deletions