diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2021-01-10 10:18:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 10:18:51 +0100 |
commit | fc1a0d936888395f114028af3337e7d674e0a43c (patch) | |
tree | 2552ac79ed07810f8cc00995f965733ed24f02b5 /src/common/Utilities/StartProcess.cpp | |
parent | 95a2b906b0bce6756c28334b6dadd051879c8587 (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.
Diffstat (limited to 'src/common/Utilities/StartProcess.cpp')
0 files changed, 0 insertions, 0 deletions