コード例 #1
0
 static void Postfix(UnitCommand command, ref float?__state)
 {
     if (__state.HasValue)
     {
         command.SetTimeSinceStart(__state.Value);
     }
 }
コード例 #2
0
            static void Prefix(UnitCommand command, ref float?__state)
            {
                if (IsInCombat() && command.Executor.IsInCombat)
                {
                    if (command.IsSpellCombatAttack())
                    {
                        command.Executor.CombatState.Cooldown.MoveAction += TIME_MOVE_ACTION;
                    }

                    __state = command.TimeSinceStart;
                    command.SetTimeSinceStart(0f);
                }
            }