static void Postfix(UnitCommand command, ref float?__state) { if (__state.HasValue) { command.SetTimeSinceStart(__state.Value); } }
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); } }