Пример #1
0
            static void Postfix(GFightUnit __instance, GFightUnit attacker, bool isSimulate, ref float __result)
            {
                bool isEnemyAttacker = attacker.getTeamId() == 1;

                if (_settings.AlwaysDodge && isEnemyAttacker && !isSimulate)
                {
                    __result = 1000.0f;
                }
            }
Пример #2
0
            static void Postfix(GFightUnit __instance, ref int __result)
            {
                bool isEnemyMark = __instance.getTeamId() == 1;

                if (_settings.MovementRangeValue > 0 && !isEnemyMark)
                {
                    __result = Math.Max(__result, _settings.MovementRangeValue);
                }
            }