i've been trying to read some source codes to find out where movement debuffs are applied.
so far, i've found out that speed is initialized in Unit.cpp thanks to patman128, and MotionMaster.cpp holds info on
confusedmovement, fleeingmovement, etc but i think these are for creatures only? not sure about this.
and from Spell.cpp and SpellEffects.cpp i can see that a lot of effects on movement are coded here, such as knockbacks, pulls, leapbacks and stuff.
but i've been unable to find stuff on pure movement speed.
for example, if a warrior uses 'hamstring' and the target gets 40% off his movement speed. where can i find the code that says this?