We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d42a841 commit 73a5020Copy full SHA for 73a5020
1 file changed
game/scripts/vscripts/lib/dota_ts_adapter.ts
@@ -87,13 +87,16 @@ export const registerModifier = (name?: string) => (modifier: new () => CDOTA_Mo
87
88
let type = LuaModifierType.LUA_MODIFIER_MOTION_NONE;
89
let base = (modifier as any).____super;
90
- while (base && type === undefined) {
+ while (base) {
91
if (base === BaseModifierMotionBoth) {
92
type = LuaModifierType.LUA_MODIFIER_MOTION_BOTH;
93
+ break;
94
} else if (base === BaseModifierMotionHorizontal) {
95
type = LuaModifierType.LUA_MODIFIER_MOTION_HORIZONTAL;
96
97
} else if (base === BaseModifierMotionVertical) {
98
type = LuaModifierType.LUA_MODIFIER_MOTION_VERTICAL;
99
100
}
101
102
base = base.____super;
0 commit comments